Enabling ARM Macro Execution |
All performance macros and ARM macros are disabled by default so that inserting these macros within code does not result in inadvertent, unwanted logging. To globally enable performance macros and ARM macros, you must set the _ARMEXEC macro variable to a value of 1. Any other value for _ARMEXEC disables the macros.
There are two methods of setting the _ARMEXEC macro variable. The first method sets the variable during DATA step or SCL program compilation uses the %LET macro statement:
%let _armexec = 1;
The second method uses CALL SYMPUT statement during execution. To set the _ARMEXEC macro variable during DATA step or SCL program execution using CALL SYMPUT:
call symput('_armexec', '1');
With this method, the macro checks the _ARMEXEC variable during program execution and the ARM function call is executed or bypassed as appropriate.
If the _ARMEXEC value is not set to 1, then no code is generated and a message is written in the log:
NOTE: ARMSTRT macro bypassed by _armexec.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.