Team,
I feel a little stuck with running jobs from a batch file.
Need some help with basic DOS stuff.
I've been looking here:
"Starting SAS"
My question is: how to combine the examples 5 and 6 in a single batch file?
Run Job1 and wait for it to finish
Run Job2 and Job3 simultaneously (to save time) and wait for both to finish
Run Job4 to combine the results from Job2 and Job3
I've been tinkering with it but could not make the jobs 2 and 3 run in parallel and make 4 wait for both of them to complete before executing.
For now I'm looking for a simple solution, without Powershell.
Thank you.
Why don't you manage the jobs from sas using MP Connect ?
Because this is the first time I hear about MP Connect and also we do not have SAS/Connect in our purchase order. What we have is SAS EG, SAS BI server and the SAS/Access modules.
SAS BI Server includes SAS/Connect
http://support.sas.com/documentation/onlinedoc/biserver/
1 minute on google would have told you the same thing.
OK, thanks, I'll look into this.
MP Connect looks promising. I checked and SAS/Connect is not part of our order. Also it is not under the BI Server deployment plan. It shows up in the Appdev plan though. So, not gonna happen for us.
You mention DOS. If you are batching this on a single pc, you are unlikely to gain much by running Jobs 2 and 3 concurrently. Many SAS jobs use a lot more I/O than CPU and there is only one I/O path on most PCs. Even with multiple servers, you may not see much gain unless the data are spread across multiple drives and you are running multi-gigabit pipes between the data and the servers.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.