SAS Component Language (SCL) programs
are placed into the input stack, and word scanning is performed for
macro triggers in the same process as in other SAS programs. Macro
variable references that are outside of SUBMIT blocks are resolved
before execution. Therefore, in the following example, a constant
value is compared to the SCL variable
Wage during
SCL execution:
MAIN:
erroroff wage;
if wage gt &max then erroron wage;
return;
Any text within a SUBMIT block is assumed to be SAS code and is therefore ignored by the SCL compiler when the SCL program is compiled. Macro variable references within SUBMIT blocks are not resolved until the SUBMIT block executes and the SAS code within the SUBMIT block ...