Lesson 11, Part 6: Storing/Accessing Macros¶
Ways to Store/Access Macros¶
- %INCLUDE of source entries non-compiled (macro definitions)
- Stored Compiled macros (Compiled macro definitions)
- AUTOCALL libraries that include macros
%INCLUDE Statement¶
- retrieves macro definitions from an external file and places it on the input stack
- is a global SAS statement, not a macro language statement
Storing Macros and Retriveining Them for Later Use¶
Storing Macros Using the Stored Compiled Macro Facility Macros can be compiled and then stored temporarily or permanently for later use. When you compile a macro, it is usually stored in the temporary WORK.SASMACR catalog. However, you can store a macro in compiled form in a SAS macro catalog also named SASMACR, but in a permanent library.