BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Aidas
Calcite | Level 5

Hi,

 

I have a macro (%space), which I would like to make available for all my colleagues using SAS Studio.

 

The following code works for a single session:

 

options append=(sasautos=('D:\sasmacros'));

options MRECALL;

%space(d:\sasdata);

How can I modify the SASAUTOS option permanently, so that 'D:\sasmacros' is added by default for all sessions and all users?

 

Can it be changed through SAS Management Console?

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
AnandVyas
Ammonite | Level 13
Hi @Aidas,

This can be achieved in different ways. Here is a link with list of such options. Even though the heading says "Making user-defined AUTOCALL macros available to stored processes" these options can be replicated for all the other logical servers.

http://support.sas.com/kb/32/231.html

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

Your idea is not so bad, but using SMC is not what I would do, as adding a complex action on the command line can be tricky (and the command line is mostly what you can manipulate in SMC).

 

Find the configuration tree of your BI Server environment on your SAS server. Then, find the directory for your workspace server, under Windows this should be something like

D:\SASHome\Lev1\SASApp\WorkspaceServer

There, add your commands to the autexec_usermods.sas file; if you want this change to also work for other types of servers in the SASApp context (ie stored processes, batch server), make this change in the SASApp directory, in file appserver_autoexec_usermods.sas.

AnandVyas
Ammonite | Level 13
Hi @Aidas,

This can be achieved in different ways. Here is a link with list of such options. Even though the heading says "Making user-defined AUTOCALL macros available to stored processes" these options can be replicated for all the other logical servers.

http://support.sas.com/kb/32/231.html

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 1275 views
  • 1 like
  • 3 in conversation