A simple way to add the catalog to your autocall marcro library is with the options statement:
filename macrocat 'path-to-the-marcro-catalog';
options sasautos=(macrocat);
Add this to your start up code and it will be automatically included for all sessions.
@dr2 wrote:
A simple way to add the catalog to your autocall marcro library is with the options statement:
filename macrocat 'path-to-the-marcro-catalog';
options sasautos=(macrocat);
Add this to your start up code and it will be automatically included for all sessions.
This has the drawback that any default auto-call macros are no longer available. Better would be
options sasautos=(sasautos macrocat);
which now gives you to both the default SAS autocall macros and whatever is in macrocat. And if there are other people who want to use your autocall macros and their own autocall macros, they could do it this way:
options append=(sasautos=mymacros);
This appends my autocall library to whatever their existing SASAUTOS option points to (assuming mymacros points to a valid filename location)
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.