04-26-2018 05:27 AM
I would like to save all the macros permanently defined as part of the complete exercise and list all the macros. I have 6 macros which I want to save and retrieve in this session:
%macro one(a,b,c) %macro gchart(dseti,Weight,Gender) %macro plot(dsetin,height,weight) %macro one(a,b,c,strtpt,endpt) %macro test %macro name(dsetin,year,revenue) %macro import_myfile(i=)
I have the code below and the error message follows it.
options mstored sasmstore=macross; libname mjstore "C:\Users\komal\Desktop\Advanced SAS"; proc catalog cat=mjstore.macross; contents; title "Default Storage of SAS Macros"; quit Error: Catalog "MJSTORE.MACROSS" not found
Please let me know your advice on how to solve it. Thank you for your time.
04-26-2018 05:38 AM
Error: Catalog "MJSTORE.MACROSS" not found
tells you that there is no file
Maybe you wanted to use
04-26-2018 06:10 AM
Avoid using compiled catalogs, save macro's as text files and include them or put them as part of the auto call. Compiled libraries are bad, compatability between systems/bits is poor, code is hidden making updating or general use so much harder.
04-26-2018 11:00 AM
If your macros are not declared with the SOURCE option it's hard to get the code back out. Did you declare them with the SOURCE option?