Date: Wed, 20 Sep 2000 09:36:57 -0500
Reply-To: Dwight Eggers <Dwight.Eggers@ERICSSON.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dwight Eggers <Dwight.Eggers@ERICSSON.COM>
Organization: Ericsson Data Services Americas
Subject: Re: Clearing "&sysdate" "&systime" ?
Content-Type: text/plain; charset=us-ascii
These settings are based on when the SAS process was initiated, not
when the step actually executed.
You can use the %sysfunc function to get the current date/time.
The inside %sysfunc evaluates the SAS function. The outside %sysfunc is
needed for the putn function. You can play around with any combination
of functions and formats.
This works for me.
> Hi SaS-L er's
> I am running a series of reports (SAS /Windows) that have &systime and
> &sysdate in the titles. I keep getting the same time and date from my
> first call of these macro variables. How do I CLEAR them to relect the
> ACTUAL time and date for each successive report?
> I had tried to put the &sysdate &systime in a macro var
> (i.e _time=&sysdate) bu that doesn't work.
> Work Around?
> Thanks in advance,
> Sent via Deja.com http://www.deja.com/
> Before you buy.