Storing Macro Definitions in Catalog SOURCE Entries
Overview
Another way of permanently storing macros is to store
a macro definition in a SOURCE entry in a SAS catalog. If you decide
to store your macro programs in a SAS catalog, you must store each
macro program in a separate SOURCE entry. It is a good idea to give
each SOURCE entry the same name as the macro program that is stored
within it. For example, a macro named
Printit
would
be stored in a SOURCE entry that is also named Printit
.
Note: SAS catalogs are members
of SAS libraries that store program source code and other types of
content.
To store a macro definition
as a SOURCE entry in a SAS catalog, you use the Save As Object window.
Example
To save the
Printit
macro definition ...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.