01-28-2017 05:46 AM
Hey Guys, sry for my bad English, i am from Germany.
I need a code that measures the time of execution.
01-28-2017 06:15 AM
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;
01-30-2017 05:12 AM
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.