The stored compiled macro facility gives you access
to permanent SAS catalogs that contain compiled macros. In order for
SAS to use stored compiled macros, the SAS option MSTORED must be
in effect. In addition, you use the SAS option SASMSTORE= to specify
the libref of a SAS library that contains a catalog of stored compiled
SAS macros. For more information about these options, see
SAS System Options: Reference.
Using stored compiled
macros offers the following advantages over other methods of making
macros available to your session:
-
SAS does not have to compile a
macro definition when a macro call is made.
-
Session-compiled macros and the
autocall facility are also available in the same session.
Because you cannot re-create
the source statements from a compiled macro, you must save the original
macro source statements.
Note: Catalogs of stored compiled
macros cannot be concatenated.
If you do not want to
use the stored compiled macro facility, you can make macros accessible
to your SAS session or job by doing the following:
-
placing all macro definitions in
the program before calling them
-
using a %INCLUDE statement to bring
macro definitions into the program from external files
Note: The %INCLUDE statement takes
as arguments the same types of file specifications as the INCLUDE
command. For more information, see
INCLUDE Command.
-
using the autocall facility to
search predefined source libraries for macro definitions
For more information
Your most efficient
choice might be to use the stored compiled macro facility.