SAS Global Forum

An Advanced, Multi-Featured Macro Program for Reviewing Logs (Paper)

The following code will allow you to run the CheckLog macro immediately in your current SAS session.

/* Download and Compile CheckLog */
filename code url "http://goo.gl/H2zu9";
%include code / nosource;
filename code clear;

Standardized Macro Programs for Macro Variable Manipulation (Paper)

The following code will allow you to run the macros discussed in the paper immediately in your current SAS session.

/* Download SiteMacros macro */
filename code url "http://goo.gl/j6QhS";
%include code / nosource;
filename code clear;
/* Download ObsMac, TableVars, IntoList, SetVars, and VarMac */
/* Also include CheckLog for the sample code */
%SiteMacros(ObsMac TableVars IntoList SetVars VarMac CheckLog);


As mentioned in the paper, it is possible to use all 5 of the above macro variables in one piece of code. Attached to the this page is the code that demonstrates this usage. Alternatively, visit the Paper Sample page for the same code. To try the program, first run the above block of code to include the necessary macros in your SAS session. Second, download the program and open it in the same SAS session. Next, run the code in blocks and review the output.
Subpages (1): Paper Sample
ċ
MacroGen_Sample.sas
(5k)
Chris S.,
Mar 15, 2012, 3:02 PM
Comments