BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
dr2
SAS Employee dr2
SAS Employee

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.

PaigeMiller
Diamond | Level 26

@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)

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 16 replies
  • 5662 views
  • 11 likes
  • 6 in conversation