![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for the OpenVMS Operating Environment |
Using stored compiled macros offers the following advantages over other methods of making macros available to your 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. ![[cautionend]](../common/images/cautend.gif)
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:
Your most efficient choice may be to use the stored compiled macro facility.
| Accessing Stored Compiled Macros |
/* Create a Stored Compiled Macro */
/* in One Session */
libname mylib '[dir]';
options mstored sasmstore=mylib;
%macro myfiles / store;
filename file1 '[dir]first.dat';
filename file2 '[dir]second.dat';
%mend;
/* Use a Stored Compiled Macro */
/* in a Later Session */
libname mylib '[dir]';
options mstored sasmstore=mylib;
%myfiles
data _null_;
infile file1;
*statements that read input file FILE1;
file file2;
*statements that write to output file FILE2;
run;
| Controlling Memory Availability for Storing Macro Variables |
Two system options control the maximum amount of memory available for storage of macro variables:
You can specify these system options in the following places:
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.