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
Anand_V
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.

Anand_V
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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 903 views
  • 1 like
  • 3 in conversation