Date: Mon, 26 Jun 2000 18:35:39 GMT
Reply-To: "John M. Wildenthal" <jmwildenthal@MY-DEJA.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "John M. Wildenthal" <jmwildenthal@MY-DEJA.COM>
Organization: Deja.com - Before you buy.
Subject: Re: How long a SAS program took to run
In article <5EBF4C59CC50D311832200A0C9771429040CEF6E@NTEXCH01>,
wendy.watson@COVANCE.COM wrote:
> Does anyone have SAS code that will record how long a program took to
> run (in hours -- using DATE and TIME) and reports the information in
> the log?
untested code:
DATA _NULL_;
CALL SYMPUT("stpstart",PUT(DATETIME(),20.));
RUN;
* your code ;
DATA _NULL_;
tdiff = DATETIME() - &stpstart ;
thr = tdiff / 3600 ;
PUT "Step used " thr " hours";
RUN;
Sent via Deja.com http://www.deja.com/
Before you buy.
|