Hi,
If you stored macro in this folder:
libname mylib '/home/folder/StoredMacros/';
You can recall all macro saved
options mstored sasmstore=mylib;
With this proceduce you can print a list of macros from catalog:
proc catalog CATALOG=mylib.sasmacr ;
Contents;
run;
quit;
Another option to get a list of macros using a filter on the dictionary alfter calling stored macro(all variable in the DICTIONARY tables is always in uppercase😞
proc sql;
select *
from dictionary.catalogs
where objtype='MACRO' and libname='MYLIB';
quit;
You can use "%COPY Statement" to print macro on log or file.
filename printmcr '/mysasfile_mymacro.sas';
%copy mymacro / source;
%copy mymacro /OUTFILE=printmcr source;
Regards,
... View more