Tips:Adding a date and time stamp message to the SAS Log
Revision as of 10:23, 17 July 2017 by Paulkaefer
SAS listing output contains date and time stamps at the top of each output page. However, the associated SAS logs do not. You can however add a date time stamp to the LOG using a couple of different methods.
* DATA Step; data _null_; datetime = datetime(); put datetime= datetime18.; run;
Or you can use the macro language.
%put Job Started Execution at %sysfunc(time(),timeampm.) on %sysfunc(date(),worddate.).;