Explanation : Capture of start time, initialization of the first remote session (sess1), and asynchronous submission (wait=no) of a 10-second wait task.
Explanation : Synchronization command waiting for all submitted tasks to complete (waitfor) followed by session closure.
Copied!
waitfor _all_;
SIGNOFF _all_;
1
waitfor _all_;
2
SIGNOFF _all_;
5 Code Block
DATA STEP
Explanation : Capture of end time and Data Step to calculate and display the total elapsed duration, validating parallelism.
Copied!
%let en_tm=%SYSFUNC(time(),time.) ;
data _null_;
st_tm="&st_tm"t;
en_tm="&en_tm"t;
int=intck('seconds',st_tm,en_tm);
put "Interval is " int "seconds.";
run;
1
%let en_tm=%SYSFUNC(time(),time.) ;
2
DATA _null_;
3
st_tm="&st_tm"t;
4
en_tm="&en_tm"t;
5
int=intck('seconds',st_tm,en_tm);
6
put "Interval is " int "seconds.";
7
RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Author: Greg Wootton Date: 04DEC2018
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.