DATA Step, Macro, Functions and more

Run sas in windows batchmode

Reply
Occasional Contributor
Posts: 8

Run sas in windows batchmode

Hi ,

 

I am not able to run batchmode (Unix) due to some reasons in my current organisation .

Can any one help me how to run sas in windows batchmode and share me few examples for me.

 

Thanks,

Mahesh T.

Super Contributor
Posts: 266

Re: Run sas in windows batchmode

Posted in reply to Mahesh_124

This is the simplest form of command, there are other option that you can also use if needed.

 

<SAShomepath>/SASHOME/SAS Foundation/9.4/sas.exe -sysin <codepath>/test.sas -log <logpath>/test.log

 

<SAShomepath> - SAShome path,

<codepath> - path where sas code is stored 

<logpath> - path where you want to store log file.

Occasional Contributor
Posts: 8

Re: Run sas in windows batchmode

Thank you Rahul .I'll check and let you know.

Super User
Posts: 7,757

Re: Run sas in windows batchmode

Posted in reply to Mahesh_124

@RahulG's suggested solution needs a local install of SAS on your Windows PC, or a login to a UNIX console on the SAS server, of course.

 

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 69 views
  • 0 likes
  • 3 in conversation