Date: Mon, 15 Nov 2004 15:12:57 -0800
Reply-To: Jeff Voeller <Jeff.Voeller@MCI.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jeff Voeller <Jeff.Voeller@MCI.COM>
Subject: Re: date stamp
In-Reply-To: <8b818910.0411151438.5b794253@posting.google.com>
Content-type: text/plain; charset=us-ascii
Try:
%let date1=%sysfunc(date(),mmddyyn6.);
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of stemp
Sent: Monday, November 15, 2004 2:38 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: date stamp
I have a question that I hope someone will be able to help me with (it
is probably easy). I am using PC SAS V9 and would like to date stamp
my out files with todays date when I am automating jobs. For example
I would like
data file1.name111504;
set anything;
run;
I tried the following but was way off and getting errors.
%let date1=date();
data file1.name&date1.;
set anything;
run;
If I could get help with this It would be greaty appreciated.
thanks