Hi,
is it possible to start a sas session under Linux without sourcing the sasenv_local?
We use a Veritas Cluster Server with two Linux Systems. The SAS installation is on both systems, but some files which are needed for sasenv_local are just on one system.
#> /opt/sas/SASHome/SASFoundation/9.4/sas -nodms
/opt/sas/SASHome/SASFoundation/9.4/bin/sasenv_local: line 28: /usd/db97446a/home/db297446/sqllib/db2profile: No such file or directory
Is there a parameter to start the session without loading the sasenv file?
Otherwise is it possible to check the detailed version without starting the sas session?
Thank you for your help!
Since sasenv_local is a classic sh/ksh/bash script, you can use a condition for the offending line, based on the output of hostname:
if [[ `hostname -s` == XXXXX ]] then . /usd/db97446a/home/db297446/sqllib/db2profile fi
where XXXXX is the hostname of the server where you have the files available.
The file isn't fix at one host. It's always on the active system mounted.
Surely I can check if the file is there, but then I have to edit the sasenv_local on 110 servers.
So if there is a possibility to start the session without sasenv, it would help me much.
Compared to doing 110 SAS installations, implementing that change is a breeze.
And if you had a way to automatically deploy those 110 installations, you also have a way to selectively deploy the sasenv_local or run an awk on it.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.