sas from command line

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 339
Accepted Solution

sas from command line

[ Edited ]

if you can please help,

 

i am trying to start sas from command line (Linux) (not a batch program like "sas test.sas") and wants to run proc setinit on specific server - how can i do that?

 

i tried starting sas via "sas -nodms" but didn't help,

 

Thank you ------


Accepted Solutions
Solution
‎06-07-2017 02:29 PM
Super User
Posts: 3,233

Re: sas from command line

Do you have X Windows sessions available to you? That is probably the easiest. Otherwise batch mode, or interactive line mode are the other options:

 

http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#p06feacuk4o11rn1ti...

 

You would need to log into remotely to each SAS app server in the grid to do the above. 

 

 

View solution in original post


All Replies
Super User
Posts: 3,233

Re: sas from command line

Why do you want to run the SAS setinit from the command line? You can post the setinit code into Display Manager SAS (easiest) or run it as a batch job.

Super Contributor
Super Contributor
Posts: 339

Re: sas from command line

have grid environement and trying looking at what products installed on each server so far, 

Super User
Posts: 3,233

Re: sas from command line

PROC SETINIT won't tell you what products are installed, just those that are licensed - you can be licensed for a product but not have it installed.

 

PROC PRODUCT_STATUS will tell you what foundation products are installed:

 

http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p167ky4zsoxrn2n1myz6i...

 

Super Contributor
Super Contributor
Posts: 339

Re: sas from command line

thanks,

but how can i execute on specific server to know about it?

 

Solution
‎06-07-2017 02:29 PM
Super User
Posts: 3,233

Re: sas from command line

Do you have X Windows sessions available to you? That is probably the easiest. Otherwise batch mode, or interactive line mode are the other options:

 

http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#p06feacuk4o11rn1ti...

 

You would need to log into remotely to each SAS app server in the grid to do the above. 

 

 

Valued Guide
Posts: 2,177

Re: sas from command line

Isn't there a way to remotesubmit across the whole grid?
I would expect one of tbe automatic macro variables to identify the individual node.....
Super Contributor
Super Contributor
Posts: 339

Re: sas from command line

i think below test went fine,

 

sas  -nodms

proc product_status; run;

 

to terminate,

ctrl+D or "T" to terminate - and then - "Y" to terminate current sas session,

 

 

thanks a lot SASKiwi, Peter.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 219 views
  • 0 likes
  • 3 in conversation