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 (March 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 25 Mar 2009 15:04:04 -0400
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: ODS dyanamic date

%let x=%sysfunc(today(),yymmdd10.); %put &x;

but that is also not really useful for a filename. You get separators in the data with that. Perhaps like:

%let x=%sysfunc(compress(%sysfunc(today(),yymmdd10.),-)); %put &x;

Gerhard

On Wed, 25 Mar 2009 13:46:43 -0500, Joe Matise <snoopy369@GMAIL.COM> wrote:

>data _null_; >call symput("date",put(today(),YYMMDDN8.)); >run; >%put &date.; > >You can use %let date = %sysfunc(today()); but that gives 17390 or whatever >(the numeric value for the date) which is probably less than useful. I >don't know how to put() the date into a date format without using the data >step. > >-Joe > >On Wed, Mar 25, 2009 at 1:37 PM, Daniel Schuster <daniel.schuster@rci.com>wrote: > >> I have the following ODS statement : >> >> ods tagsets.excelxp file='/user/groups/Threshold Report 20090325.xls' >> style=sasweb; >> >> I need to change this so that the date in the file name will equal 'today >> ()'. >> >> I tried using &sysdate but I cannot get it to resolve. >> >> Is there a way to do this? >> >> Thanks, >> Dan >>


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