LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: stemp <saultemp@HOTMAIL.COM>
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


Back to: Top of message | Previous page | Main SAS-L page