Chapter 5
Scopes of Macro Variables
Writing the Contents of Symbol Tables to the SAS Log
How Macro Variables Are Assigned and Resolved
Examples of Macro Variable Scopes
Changing the Values of Existing Macro Variables
Forcing a Macro Variable to Be Local
Creating Global Macro Variables
Creating Global Variables Based on the Value of Local Variables
Special Cases of Scope with the CALL SYMPUT Routine
Overview of CALL SYMPUT Routine
Example Using CALL SYMPUT with Complete DATA Step and a Nonempty Local Symbol Table
Example Using CALL SYMPUT with an Incomplete DATA Step
Example Using CALL SYMPUT with a Complete DATA Step and an Empty Local Symbol Table ...
Get SAS 9.4 Macro Language, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.