Using Stored Compiled Macros

The Stored Compiled Macro Facility

Remember that when a macro is compiled, it is stored in the temporary SAS catalog Work.Sasmacr by default. You can also store compiled macros in a permanent SAS catalog. Then you can use the Stored Compiled Macro Facility to access permanent SAS catalogs that contain compiled macros.
There are several advantages to using stored compiled macros:
  • SAS does not need 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.
  • Users cannot modify compiled macros.
Two SAS system options affect stored compiled macros: MSTORED and SASMSTORE=. The MSTORED system option controls whether ...

Get SAS Certification Prep Guide, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.