BookmarkSubscribeRSS Feed
BenConner
Pyrite | Level 9

Hi,

 

We don't have EG in our environment and one of the features I've always liked in it is the ability to specify multiple concurrent processing streams that can get combined later when something like a merge takes place. 

 

I've been thinking about how to create that with semaphores (probably 1 byte files) to kick off a similar environment using call system() or something similar.

 

Has anyone done this already?  Would love to hear how you did it.

 

Thanks!

 

--Ben

2 REPLIES 2
Kurt_Bremser
Super User

On UNIX, you do this in a shell script:

sas prog1.sas&
sas prog2.sas&
sas prog3.sas&
wait

The three SAS programs will be executed in parallel, and the script will terminate when all three SAS programs have finished.

Call this script from the main SAS program in a manner that makes SAS what for its termination.

BenConner
Pyrite | Level 9

Yeah, Unix variants have much nicer toys than Windows.  This is on a Windows server, unfortunately. 

 

--Ben

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 576 views
  • 0 likes
  • 2 in conversation