How can I get a filename to contain the current month/year? It's easy to get numeric variables:
[tt]mth = month(today());
yr = year(today());[/tt]
But, later on I want a filename to actually contain these as strings, something like:
[tt]data file200310;[/tt]
I've tried:
[tt]
%let M = mth;
%let Y = yr;
data file&Y.&M;
[/tt]
but this just gives me
[tt]data fileyrmth;[/tt]
How do I get the value of these into text strings?
[tt]mth = month(today());
yr = year(today());[/tt]
But, later on I want a filename to actually contain these as strings, something like:
[tt]data file200310;[/tt]
I've tried:
[tt]
%let M = mth;
%let Y = yr;
data file&Y.&M;
[/tt]
but this just gives me
[tt]data fileyrmth;[/tt]
How do I get the value of these into text strings?