Help using Base SAS procedures

How to trigger multiple programs at same time?

Reply
N/A
Posts: 0

How to trigger multiple programs at same time?

Would like to know if its possible to trigger multiple sas scripts at the same time with out using rsubmit?

if so how can we do it?

Thanks,
activa
Super Contributor
Posts: 356

Re: How to trigger multiple programs at same time?

Posted in reply to deleted_user
have a look at
x cmd with nowait.

Cheers

Barry
Super User
Posts: 3,256

Re: How to trigger multiple programs at same time?

Posted in reply to twocanbazza
First you need to establish multiple SAS server sessions, then do asynchronous RSUBMITs using WAIT=NO:

signon session1;

signon session2;

rsubmit session1 wait=no;
sas code here....
endrsubmit;

rsubmit session2 wait=no;
sas code here....
endrsubmit;

If you then want your parent session to wait for both session1 and session2 to finish then use:

waitfor _all_ session1 session2;
PROC Star
Posts: 1,760

Re: How to trigger multiple programs at same time?

I too read " with out using rsubmit" as "with using rsubmit" at first glance... Smiley Happy
Super User
Posts: 3,256

Re: How to trigger multiple programs at same time?

Maybe I should read more carefully! BTW the RSUBMIT approach is so much more flexible and easier to manage I would only use alternatives if I didn't have SAS/CONNECT.
Frequent Contributor
Posts: 82

Re: How to trigger multiple programs at same time?

Posted in reply to deleted_user
you can try submitting also some programs in EG, others in batch mode
Valued Guide
Posts: 2,177

Re: How to trigger multiple programs at same time?

Posted in reply to deleted_user
how about a scheduler?

What makes the decision to launch those SAS processes?
A long time ago (forget galaxy ...) I wrote a routine that would launch SAS programs based on a trigger = "that a file exists".

My routine was a SAS task that watched and tested for the trigger file with fileexist( 'trigger file name') which is FALSE (0) until that file exists. Once TRUE, it used the X-statement to launch the SAS programs because they were to run independantly. Another trigger was needed to stop the "watching" task. That watcher process could have been set up as a windows service.

I think a proper scheduler should be able to do that in a much more supportable way ;-)

peterC
Ask a Question
Discussion stats
  • 6 replies
  • 126 views
  • 0 likes
  • 6 in conversation