BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RaulME
Fluorite | Level 6

Hello

I want to open a SAS session from the server to run some code, but it is failing me.

 

I have seen in some manunes that it can be invoked with the command:

 

Example: invoke an interactive SAS session

To invoke an interactive SAS session, without specifying any SAS system options, enter

 

sas

 

but this fails me with:

 

$ sas
-bash: sas: command not found

 

I also tried another method which can be:

 

Invoking SAS in line-interactive mode

To start a line-interactive mode session, invoke SAS with the NODMS or NODMSEXP system option:

 

sas -nodms

 

sas -nodmsexp

 

but the same problem:

 

sas -nodms
-bash: sas: command not found

 

Does anyone know how you can invoke a session sas from Linux server?

1 ACCEPTED SOLUTION

Accepted Solutions
Sajid01
Meteorite | Level 14

It depends on where sas is installed.
Assuming SAS is installed in opt and there is a folder called sashome., then

/opt/sashome/SASFoundation/9.4/sas -nodms
opens your SAS sessions.


View solution in original post

2 REPLIES 2
alexal
SAS Employee

You have to either provide a full path to SAS executable or add SAS Foundation directory to $PATH.

 

Starting SAS Sessions in UNIX Environments: https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=hostunx&docsetTarget=p... 

Sajid01
Meteorite | Level 14

It depends on where sas is installed.
Assuming SAS is installed in opt and there is a folder called sashome., then

/opt/sashome/SASFoundation/9.4/sas -nodms
opens your SAS sessions.


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 

Get Started with SAS Information Catalog in SAS Viya

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.

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