Home Page Icon
Home Page
Table of Contents for
Footnotes
Close
Footnotes
by SAS Documentation
SAS 9.4 Macro Language, 2nd Edition
Cover Page
Title Page
Copyright Page
About This Book
What’s New in the SAS 9.4 Macro Facility
Recommended Reading
Part 1: Understanding and Using the Macro Facility
Chapter 1: Introduction to the Macro Facility
Getting Started with the Macro Facility
Replacing Text Strings Using Macro Variables
Generating SAS Code Using Macros
More Advanced Macro Techniques
Other Features of the Macro Language
Chapter 2: SAS Programs and Macro Processing
SAS Programs and Macro Processing
How SAS Processes Statements without Macro Activity
How SAS Processes Statements with Macro Activity
Chapter 3: Macro Variables
Macro Variables
Macro Variables Defined by the Macro Processor
Macro Variables Defined by Users
Using Macro Variables
Displaying Macro Variable Values
Referencing Macro Variables Indirectly
Manipulating Macro Variable Values with Macro Functions
Chapter 4: Macro Processing
Macro Processing
Defining and Calling Macros
How the Macro Processor Compiles a Macro Definition
How the Macro Processor Executes a Compiled Macro
Summary of Macro Processing
Chapter 5: Scopes of Macro Variables
Scopes of Macro Variables
Global Macro Variables
Local Macro Variables
Writing the Contents of Symbol Tables to the SAS Log
How Macro Variables Are Assigned and Resolved
Examples of Macro Variable Scopes
Special Cases of Scope with the CALL SYMPUT Routine
Chapter 6: Macro Expressions
Macro Expressions
Defining Arithmetic and Logical Expressions
How the Macro Processor Evaluates Arithmetic Expressions
How the Macro Processor Evaluates Logical Expressions
Chapter 7: Macro Quoting
Macro Quoting
Deciding When to Use a Macro Quoting Function and Which Function to Use
%STR and %NRSTR Functions
%BQUOTE and %NRBQUOTE Functions
Referring to Already Quoted Variables
Deciding How Much Text to Mask with a Macro Quoting Function
%SUPERQ Function
Summary of Macro Quoting Functions and the Characters That They Mask
Unquoting Text
How Macro Quoting Works
Other Functions That Perform Macro Quoting
Chapter 8: Interfaces with the Macro Facility
Interfaces with the Macro Facility
DATA Step Interfaces
Using SAS Language Functions in the DATA Step and Macro Facility
Interfaces with the SQL Procedure
Interfaces with the SAS Component Language
SAS/CONNECT Interfaces
Chapter 9: Storing and Reusing Macros
Storing and Reusing Macros
Saving Macros in an Autocall Library
Saving Macros Using the Stored Compiled Macro Facility
Chapter 10: Macro Facility Error Messages and Debugging
General Macro Debugging Information
Troubleshooting Your Macros
Debugging Techniques
Chapter 11: Writing Efficient and Portable Macros
Writing Efficient and Portable Macros
Keeping Efficiency in Perspective
Writing Efficient Macros
Writing Portable Macros
Chapter 12: Macro Language Elements
Macro Language Elements
Macro Statements
Macro Functions
Automatic Macro Variables
Interfaces with the Macro Facility
Selected Autocall Macros Provided with SAS Software
Selected System Options Used in the Macro Facility
Part 2: Macro Language Dictionary
Chapter 13: AutoCall Macros
AutoCall Macros
Dictionary
Chapter 14: Automatic Macro Variables
Automatic Macro Variables
Dictionary
Chapter 15: DATA Step Call Routines for Macros
DATA Step Call Routines for Macros
Dictionary
Chapter 16: DATA Step Functions for Macros
DATA Step Functions for Macros
Dictionary
Chapter 17: Macro Functions
Macro Functions
Dictionary
Chapter 18: SQL Clauses for Macros
SQL Clauses for Macros
Dictionary
Chapter 19: Macro Statements
Macro Statements
Dictionary
Chapter 20: System Options for Macros
System Options for Macros
Dictionary
Part 3: Appendixes
Appendix 1: Reserved Words in the Macro Facility
Macro Facility Word Rules
Reserved Words
Appendix 2: SAS Tokens
SAS Tokens
List of Tokens
Appendix 3: Syntax for Selected Functions Used with the %SYSFUNC Function
Summary Descriptions and Syntax
Functions and Arguments for %SYSFUNC
Glossary
Index
Footnotes
Chapter 19 Macro Statements
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Index
Footnotes
Chapter 19: Macro Statements
1
A computed %GOTO contains % or & and resolves to a label.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset