In many applications,
you need to create macro variables during DATA step execution. You
might need to create macro variables and to assign values to them
based on the following:
-
data values in SAS data sets or
in external files
-
-
For example, suppose
you want to create a report that lists students who are enrolled in
a specific course, according to data in the Sasuser.All data set.
Suppose you want to include a footnote in your report to indicate
whether any student fees are unpaid.
The following program
uses SAS programming logic to determine which value is assigned to
the macro variable foot. Then foot is referenced in the FOOTNOTE ...