LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 9 Jun 2004 15:26:58 -0500
Reply-To:   Gary Ross <gary_ross@MGIC.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gary Ross <gary_ross@MGIC.COM>
Organization:   http://extra.newsguy.com
Subject:   Re: Adding date to a file name
Content-Type:   text/plain; charset=us-ascii

"Melanie J." wrote: > > Hello everyone, > > Can anyone tell me if it's possible for me to add the current date to > a file name being created in an ODS statement? I'd like to setup my > program so that when anyone else runs it, the date that they run it is > automatically attached to the RTS file name. For instance, today's > file would be called "InvName060904". I tried using a let statement, > and was able to create the proper value as follows: > > %let date = compress(put(today(),mmddyy8.),'/'); > > However, it's not working when I substitute this in the RTF file name, > as follows: > > ODS RTF FILE = "InvName&date.RTF"; > > I think I'm missing something in the ODS statement, but maybe it's > just not possible to do this? > > TIA, > > Melanie

Try:

ODS RTF FILE = "InvName&date..RTF";


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