|
"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";
|