Hey Guys, sry for my bad English, i am from Germany.
I need a code that measures the time of execution.
Pseudocode:
The datetime() function gives you the current time.
%let starttime=%sysfunc(datetime());
/* code */
data _null_;
starttime = &starttime;
endtime = datetime();
execution_time = endtime - starttime;
put starttime datetime19.;
put endtime datetime19.;
put execution_time time8.;
run;
How can I use this in Proc Step?
Don´t work if i Try with Import a CSV-File in Proc-Step 😞
You don't use this in a step, you wrap it around the steps you want to measure.
The code that you want to measure goes where my comment (/* code */) is.
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.