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 2025: Call for Content

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!

Submit your idea!

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
  • 745 views
  • 0 likes
  • 2 in conversation