Published on :
Utility CREATION_INTERNE

Cleaning the WORK macro catalog

This code is also available in: Deutsch Español Français
The AHGclearmac macro aims to reset the macro environment of the current session. It uses the DATASETS procedure to delete the 'sasmacr' catalog located in the WORK library, thereby erasing all previously compiled macros.
Data Analysis

Type : CREATION_INTERNE


The script manipulates internal system objects (the sasmacr catalog) within the WORK library.

1 Code Block
PROC DATASETS
Explanation :
Definition of the macro that targets the WORK library to delete the catalog-type entry named 'sasmacr'.
Copied!
1%macro AHGclearmac;
2 PROC DATASETS lib=work memtype=catalog;
3 delete sasmacr;
4 RUN;
5%mend;
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.