BookmarkSubscribeRSS Feed
Saurabh13
Fluorite | Level 6

I am facing a weird problem. 

 

I have sas program like that.

 

Proc printto log = "path" new;

run;

 

signon s1 server details;

 

rsubmit statements;

  Break input dataset of 20 millions records into 4 datasets in 4 threads. and addithional processing.

endrsubmit;

signoff ;

wait forall threeads;

 

data Final;

 set ds1 ds2 ds3 ds4;

run;

 

Program is executing fine without errors. But the logs are not in sequence as the statement executes.  Some part of thread 1 then thread 2 and thred 1 again like this.

 

Is there any option to arrange the log into the thread sequqnce. 

 

Please suggest. 

3 REPLIES 3
SASKiwi
PROC Star

What happens if you don't use PROC PRINTTO - same problem?

Saurabh13
Fluorite | Level 6

I need to use proc Printto only. Because same process runs for various scenarios parallely . So in that case by default log would overwritten. So i din check without Proc Printto.

SASKiwi
PROC Star

How are you running the job? My guess is you are running it interactively, say in EG or Display Manager. I suggest you run this in batch mode without PROC PRINTTO. Your log won't be overwritten in this case so it will be interesting to see what order the multiple RSUBMITs are in the SAS log file. I'm guessing they will be in the order that they are completed.

 

I also suggest experimenting with the LOG = option on the RSUBMIT statement:

 

http://support.sas.com/documentation/cdl/en/connref/69581/HTML/default/viewer.htm#p1eyablk3vvdlkn1h5...

 

This enables you to send each remote sessions' logs to different files if necessary. You could then assemble them together at the end in the order you want. 

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 676 views
  • 0 likes
  • 2 in conversation