Date: Fri, 4 Jan 2002 14:36:17 +0100
Reply-To: Peter Crawford <peter.crawford@DB.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Crawford <peter.crawford@DB.COM>
Subject: Re: Date/time of execution of program
Content-type: text/plain; charset=iso-8859-1
Hi Peter
may I offer my %now macro
Use it like
footnote "processing at %now";
or
footnote "processing at %now(fmt=datetime18)";
to avoid the fractions of a second
If these formats aren't what you want, either build a user
datetime picture format to suit what you want or modify the macro
%macro now(fmt=datetime21.2) / cmd stmt;
%sysfunc( datetime(), &fmt )
%mend now;
Regards, and happy new year
Peter Crawford
Datum: 04/01/2002 13:17
An: SAS-L@LISTSERV.UGA.EDU
Antwort an: Peter Flom <peter.flom@NDRI.ORG>
Betreff: Date/time of execution of program
Nachrichtentext:
Hello all
In the standard options the date and time printed on the output are for when you last started SAS. I would like to have the time when the particular SAS program started running.
I know this can be done, because I got (I think from the list) a macro which did it.....but I don't remember how, and 9/11 claimed that macro.
Any help appreciated
Peter L. Flom, PhD
Principal Research Associate
Acting Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
National Development and Research Institutes
71 W. 23rd St
New York, NY 10010
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.