Hello,
Ran program that has many procedure and data steps. Runs fine. Each procedure, DS, upon finishing, reports as such
"
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.06 seconds
cpu time 0.03 seconds"
Great. Only that at the very end of the running, TOTAL real time, cpu time is NOT reported. How to resurface that total clock? I have this :options mprint mlogic label compress=yes obs=max;" taking effect.
Thanks
Jia Xin
When programs are run in batch mode, the whole time is reported at the end of the log.
And EG records the execution time for a whole code node.
When programs are run in batch mode, the whole time is reported at the end of the log.
And EG records the execution time for a whole code node.
This is what I do when I want the program run duration in the SAS Log
1.As the first line in the code I have the following statement
%let start_time=%sysfunc(datetime());
2.At the end of the program have this data step
data _NULL_;
run_time=datetime() -&start_time.;
put The run duration was run_time time13.2;
end;
One nice little option: options fullstimer; does the trick. Forgot all about it.
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!
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.