05-30-2017 02:42 AM
I am facing a weird problem.
I have sas program like that.
Proc printto log = "path" new;
signon s1 server details;
Break input dataset of 20 millions records into 4 datasets in 4 threads. and addithional processing.
wait forall threeads;
set ds1 ds2 ds3 ds4;
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.
05-30-2017 03:29 AM
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.
05-30-2017 03:54 AM
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:
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.