Published on :
Utility CREATION_INTERNE

Display the content of the temporary macro catalog

This code is also available in: Deutsch Español Français
The PROC CATALOG procedure with the CONTENTS option allows viewing the content of a SAS© catalog. In this case, it targets 'work.sasmacr', which is the default catalog where SAS© stores compiled macro definitions during a session. The script also adds a title to the output. This type of script is useful for checking which macros are available or for debugging.
Data Analysis

Type : CREATION_INTERNE


The script does not use external data or traditional sources. It queries an internal SAS catalog ('work.sasmacr') which contains metadata of SAS macros compiled during the current session.

1 Code Block
PROC CATALOG
Explanation :
This block uses the PROC CATALOG procedure to examine the 'sasmacr' catalog in the 'WORK' library. The 'contents' statement generates a detailed report of the entries (members) contained in this catalog, and the 'title' statement defines the title that appears in the output generated by the procedure.
Copied!
1*m202d01;
2 
3PROC CATALOG cat=work.sasmacr;
4 contents;
5 title "My Temporary Macros";
6QUIT;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.