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 (September 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 19 Sep 2008 10:40:44 -0400
Reply-To:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject:   Re: Incorporating the date info filename
In-Reply-To:   <EDB6078EC27BC74290635465379F70D207AC812FC2@EX-CMS01.westat.com>
Content-Type:   text/plain; charset=us-ascii

see also:

http://www.sascommunity.org/wiki/Macro_Variables_of_Date_and_Time

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of Aaron Fude > Sent: Thursday, September 18, 2008 5:20 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Incorporating the date info filename > > > Hi, > > I am exporting a file in SAS using the following statement > > proc export data=sp500forecasts > outfile='F:\Groups\Quantitative > Analysis\sp500forecasts_date.txt' replace; > > How can I write this statement so that I can insert the sas > macro &sysdate (or something similar) into the filename so > that the output file name will have the current date in its > name. The problem is that SAS does not interpret macros > within single quotes. > > Many thanks in advance, > > Aaron > >


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