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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 6380 views
  • 11 likes
  • 6 in conversation