Summary
Text Summary
Basic Concepts
A macro program is created
with a macro definition, which consists of a %MACRO statement and
a %MEND statement. The %MACRO statement also provides a name for the
macro. Any combination of macro language statements and SAS language
statements can be placed in a macro definition. The macro definition
must be compiled before it is available for execution. The MCOMPILENOTE=
option causes a note to be issued to the SAS log when a macro has
completed compilation. To execute a name style macro, you submit a
call to the macro by preceding the macro name with a percent sign.
Developing and Debugging Macros
Two system options, MLOGIC, and MPRINT, are useful for macro development and debugging. The MLOGIC option writes ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.