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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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