|
%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
>>
|