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 -
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.
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 ?
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?
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.
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.
Thank you so much all for your commnet,
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.