DOCUMENTATION
  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise
SAS® Help Center
SAS/GRAPH®: Reference for SAS® Viya® Workbench
v_001
|PDF 
Feedback
 
  • About This Book
  • Getting Started
  • SAS/GRAPH Concepts
  • Generating Output with SAS/GRAPH
  • Controlling the Appearance of Your Output
  • Statements Used by SAS/GRAPH
  • Options Used by SAS/GRAPH
  • The Annotate Facility
    • Using Annotate Data Sets
    • Annotate Function Dictionary
    • Annotate Variable Dictionary
    • Annotate Macro Dictionary
      • About the Annotate Macros
      • Using Annotate Macros
      • %ANNOMAC Annotate Macro
      • %ARROW Annotate Macro
      • %BAR, %BAR2 Annotate Macros
      • %CIRCLE Annotate Macro
      • %CNTL2TXT Annotate Macro
      • %COMMENT Annotate Macro
      • %DCLANNO Annotate Macro
      • %DRAW Annotate Macro
      • %DRAW2TXT Annotate Macro
      • %FRAME Annotate Macro
      • %LABEL Annotate Macro
      • %LINE Annotate Macro
      • %MAPLABEL Annotate Macro
      • %MOVE Annotate Macro
      • %PIEXY Annotate Macro
      • %POLY, %POLY2 Annotate Macros
      • %POLYCONT Annotate Macro
      • %POP Annotate Macro
      • %PUSH Annotate Macro
      • %RECT Annotate Macro
      • %SCALE Annotate Macro
      • %SCALET Annotate Macro
      • %SEQUENCE Annotate Macro
      • %SLICE Annotate Macro
      • %SWAP Annotate Macro
      • %SYSTEM Annotate Macro
      • %TXT2CNTL Annotate Macro
  • SAS/GRAPH Procedures
  • Appendixes
 

%SWAP Annotate Macro

Exchanges control between (XLAST, YLAST) and text (XLSTT, YLSTT) coordinates.

Updates:XLAST, YLAST, XLSTT, YLSTT
Variables written out:FUNCTION
Requirement:You must run the %ANNOMAC macro before using this or any of the other SAS/GRAPH annotate macros. See Making the Macros Available.

Syntax

%SWAP;
Last updated: January 17, 2025
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved