Date: Fri, 4 Jan 2008 07:26:20 -0800
Reply-To: Peter <crawfordsoftware@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter <crawfordsoftware@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: 3 days executing a program
Content-Type: text/plain; charset=ISO-8859-1
On 4 Jan, 14:24, wie...@INED.FR (Andre Wielki) wrote:
> Hi all,
> I don't remember well if i use
>
> options dtreset;
> ...
> %macro... ;
> %do i=1 %to ... ;
> %put i=&i;
> %put %sysfunc(putn("&sysdate"d,eurdfwdx.));
>
> %end;
> %mend;
>
> would the printed date change on sturday and sunday
> or remain in the start state date today friday?
>
> My collegue can not wait until monday and here in Paris is it already friday 15h25!
>
> TIA
> Andre
> --
> André WIELKI
> INED (Institut National d'Etudes Démographiques)
> Service Informatique
> 133 Boulevard Davout 75980 Paris Cedex 20
> mél : wie...@ined.fr tél : 33 (0) 1 56 06 21 54
:-) Monday....
&sysdate is fixed when a SAS session starts;
option dtReset has no effect on &systime ;
try
option dtReset; %put &systime %sysfunc( datetime(), datetime);
It does have effect on the time reported on a title line.
option dtReset ;
title "%sysfunc( datetime(), datetime) &systime ";
proc print data= sashelp.class(obs=1); run;
So I conclude that the option dtReset does not affect &systime and
&sysdate .
PeterC
|