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

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 1769 views
  • 1 like
  • 3 in conversation