As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
Tips:Program run time
As part of the decommissioning effort for sasCommunity.org this article/tip has been migrated to communities.sas.com.
The new home for this article/tip is Program run time (https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Program-Run-Time/m-p/475833#M178)
A couple of useful things to do with the current time:
1. Put it at the top and bottom of your program for a quick & easy way of seeing how long a program took to execute.
e.g. %let datetime_start = %sysfunc(TIME()) ; %put START TIME: %sysfunc(datetime(),datetime14.); ... program code ... %put END TIME: %sysfunc(datetime(),datetime14.); %put PROCESSING TIME: %sysfunc(putn(%sysevalf(%sysfunc(TIME())-&datetime_start.),mmss.)) (mm:ss) ;
2. It's also useful to put this in a footnote for output that will be archived.
e.g. footnote2 "%sysfunc(datetime(),datetime14.)";
Submitted by Robert Matthews. Contact me at my Discussion Page.