Chapter 8: %LOCAL vs. %GLOBAL
8.2 Creating Symbol Tables and Macro Variables
8.2.1 Programming Challenge #6
8.3 Symbol Tables with CALL SYMPUT
8.4 Symbol Tables with CALL SYMPUTX
Global variables. Local variables that automatically vanish. A compendium of rules that depend on which tool creates a macro variable. Why do we need these complications?
8.1 Why Think %Locally?
Why should this be an issue? Why not just make all macro variables global, and eliminate the related complications? After all, in a %GLOBAL world, %LET would have the same effect whether it appears inside or outside of a macro. In this example, %UPPER affects the one (and only) %GLOBAL ...
Get SAS Macro Language Magic 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.