From: Susan Cloninger on 5 Jan 2010 09:49 Using DATETIME() instead of &SYSDATE seems to correct for this: data a; options dtreset nocenter; format a b $7. c datetime.; a="&sysdate" ; b="&systime"; c=DATETIME(); run; proc print;run; From separate runs: The SAS System 09:44 Tuesday, January 5, 2010 13 Obs a b c 1 05JAN10 08:41 05JAN10:09:44:14 The SAS System 09:45 Tuesday, January 5, 2010 14 Obs a b c 1 05JAN10 08:41 05JAN10:09:45:34 Susan On Tue, 5 Jan 2010 09:15:10 -0500, Susan Cloninger <scloninger(a)UMUC.EDU> wrote: >Sorry -- should have done a little more checking first, but DTRESET does >not reset &sysdate, just the dates in titles apparently. > >Susan > > >On Tue, 5 Jan 2010 09:05:12 -0500, Susan Cloninger <scloninger @ UMUC.EDU> >wrote: > >>There is a system option that can make a difference in these types of >>situations, i.e., where it is important to have "date/time as of this >>moment." >> >>Hope this helps! >>Susan >> >> >>------------------------------------------------------------------------- >>------------------------------------------------------------------------- >> >>SAS System Options >> >>DTRESET System Option >> >>Syntax DTRESET | NODTRESET >> >>------------------------------------------------------------------------- >>Specifies whether to update the date and time in the SAS log and in the >>procedure output file. >> >>DTRESET specifies that SAS update the date and time in the titles of the >>SAS log and the procedure output file. >> >>NODTRESET specifies that SAS not update the date and time in the titles >>of the SAS log and the procedure output file. >> >>------------------------------------------------------------------------- >> >>Details >> >>The DTRESET system option updates the date and time in the titles of the >>SAS log and the procedure output file. This update occurs when the page >>is being written. The smallest time increment that is reflected is >>minutes. >> >>The DTRESET option is especially helpful in obtaining a more accurate >>date and time stamp when you run long SAS jobs. >> >>When you use NODTRESET, SAS displays the date and time that the job >>originally started.
First
|
Prev
|
Pages: 1 2 Prev: New Comparison Operators? - WAS: missing numerical values = - Next: File is full or damaged |