Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

schedule SAS to run overnight

Status
Not open for further replies.

Mellis78

Programmer
Oct 16, 2003
3
GB
I have SAS V8.2 on my windows machine. I'm looking to automate jobs using the standard scheduling software on my pc. I have previously done this, and got programs to run overnight and write log files to my pc.

I've forgtoeen how to do this. Can any one tell me how to enter the info to open SAS, run some code and save a log. (this is one entry in the scheduling process.
 
The way I do this is to use the windows scheduler. (That is really unreliable).
What you need to do is have the SAS job run as an autoexec procedure (In the startup).
In the run line (of the scheduler) Put the following commmands:
"c:\folder_where_sas_engine_is\sas.exe" -autoexec "c:\yoursas_program.sas"

The last line of your programs should be the ENDSAS; statement. This will close the sas session.

Hope that this helped you.
Klaz
 
Personally I like Schedule Wizard. It is fairly inexpensive and has some nice features . Info at

the code I use in Schedule Wizard is fairly basic

such as
C:\Program Files\SAS Institute\SAS\V8\sas.exe q:\prog_dje\railcars_lkc_update.sas

Basically the location of the SAS exe file and the location of the program. works for me...I have programs that run periodically throughout the day to update files for my web application.

The feature that Schedule Wizard offers is not to start a job if it is more than 10 min past the scheduled job time. With the previous scheduler all jobs would fire up at one time after a server outage and it would bury the machine in work.

Used it for years now..

dje
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top