We have looked at various examples of specifying and resolving macro variables throughout this book. Now, we will explore some specific instances where our current knowledge of macro variables isn't enough to overcome certain challenges.
Resolving macro variables
Macro variable names within text
So far, the macro variables we have formed have had no prefix or suffix attached to them. Some macro variables, however, have had a period in front of them to segregate them from the library name, like so:
%Let Out = Class_;
Data &Out2013 &Out2019;
Set Class;
If Year EQ 2013 Then
Output &Out2013;
Else
Output &Out2019;
Run;
In a macro variable reference, the word scanner recognizes that a macro variable name...