BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
woo
Lapis Lazuli | Level 10 woo
Lapis Lazuli | Level 10

we are using sas9.4 on linux with grid environment.

Does sasenv_local setting applys to all sas jobs? (batch mode/ interactive fashion/ grid run)? when we have environment variable set up here do we still need to apply it to /etc/profile file for all?

Thank you -

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Everything that starts a new SAS session uses the {SASHOME}/SASFoundation/9.4/sas script. That is actually not a script itself, but a link to one of the scripts in the {SASHOME}/SASFoundation/9.4/bin directory (sas_{language}, sas_dbcs, sas_u8). These scripts themselves source (include) the sasenv and sasenv_local files located in the same directory.

So you can safely assume that a variable you set in sasenv_local will be set for every SAS session on that server.

View solution in original post

7 REPLIES 7
nhvdwalt
Barite | Level 11

Yes, sasenv_local applies to all SAS sessions on that server, regardless where they were called from.

 

Regarding your second question....It depends. What is the particular setting in question ?

woo
Lapis Lazuli | Level 10 woo
Lapis Lazuli | Level 10

thanks nhvdwalt.

 

lets say if i have oracle related environment variables set up there in sasenv_local, should i set up at /etc/profile as well?

 

alexal
SAS Employee

@woo,

 

>> should i set up at /etc/profile as well?

 

No, it's not necessary.

nhvdwalt
Barite | Level 11

You will place you Oracle variables in sasenv_local. If you have users that will use the Oracle utilities OUTSIDE of SAS, then yes, those values will need to be in their .profile scripts as well. It's unlikely since your users will probably want to connect to Oracle from SAS, but possible.

Anand_V
Ammonite | Level 13
Hi @woo

sasenv_local is one of the configuration files which is read by the SASFoundation Process that is going to be launched on the server and it would be for all - Batch/Inter/Grid/Manual Submissions.

If you wish to use the variable to be used for all the users using the GRID, then it's enough to use it in sasenv_local file. But if you wish to restrict it to few users only, then you can use the /etc/profile.

Hope this helps.

Thanks,
AV
Kurt_Bremser
Super User

Everything that starts a new SAS session uses the {SASHOME}/SASFoundation/9.4/sas script. That is actually not a script itself, but a link to one of the scripts in the {SASHOME}/SASFoundation/9.4/bin directory (sas_{language}, sas_dbcs, sas_u8). These scripts themselves source (include) the sasenv and sasenv_local files located in the same directory.

So you can safely assume that a variable you set in sasenv_local will be set for every SAS session on that server.

woo
Lapis Lazuli | Level 10 woo
Lapis Lazuli | Level 10

Thank you so much all for your commnet,

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 8114 views
  • 4 likes
  • 5 in conversation