Running SAS from command line
Running SAS from command line
(OP)
Hi,
We are running a server copy of SAS (UNIX) and there are a couple programs that we run on a fairly regular basis. We were wondering if there was a way to run SAS programs from the command line, without even having to go in to SAS.
Any help or nudge in the direction would be appreciated!
fyr
We are running a server copy of SAS (UNIX) and there are a couple programs that we run on a fairly regular basis. We were wondering if there was a way to run SAS programs from the command line, without even having to go in to SAS.
Any help or nudge in the direction would be appreciated!
fyr
RE: Running SAS from command line
You can submit a sas job as a foregroud job:
sas YourJobName.
But this will hold up you unix session.
You can also submit a sas job as a backgroud job:
nohup sas YourJobName &.
This will not hold up you session and when you log out, you job continue to run.
RE: Running SAS from command line
I have batch files set up to run on a scheduled basis on a 'dog' machine on the network. The one drawback is that SAS & the scheduled tasks do not run as a service, so the machine needs to be logged in ALL of the time.
In your batch file put
"C:\Program Files\SAS Institute\SAS\V8\sas.exe" -sysin "path and full program name.sas"
SAS's site has a nice blurb on doing it too
ftp://ftp.sas.com/techsup/download/technote/ts648/ts648.html
RE: Running SAS from command line