Hi,
Is there an option in SAS to schedule programs to run one after another? Please help, have about 30 programs to run but hate checking back whether one is finished before executing another and donot wanna do it through VBA.
-Akber
SYSTASK command along with WAITFOR command can be used to run a list of SAS programs within a program.
For example, the following systask is used to run test.sas program.
systask command "sas.exe -sysin test.sas -nosplash -icon -log test.log" taskname=task1 status=stat1;
waitfor task1;
The WAITFOR command can be used to sequence the jobs if needed.
Hope this helps.
Selva.
What does your SAS environment look like (licenses, servers...?).
The scheduling options available to you within SAS is described in the documentation.
If this does not work for you, you'll need to look at 3rd party resources, maybe there is a scheduler available at your site?
http://support.sas.com/documentation/cdl/en/scheduleug/64110/HTML/default/viewer.htm#titlepage.htm
/Linus
you can put all you programs in one sas file using %include. then just run the sas file.
%include "c:\temp\code1.sas";
%include "c:\temp\code2.sas";
SYSTASK command along with WAITFOR command can be used to run a list of SAS programs within a program.
For example, the following systask is used to run test.sas program.
systask command "sas.exe -sysin test.sas -nosplash -icon -log test.log" taskname=task1 status=stat1;
waitfor task1;
The WAITFOR command can be used to sequence the jobs if needed.
Hope this helps.
Selva.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.