I’d like to use the date as a variable name. I understand I’ll need to append a character to the front and also that it’s not a good way to store data (it’s purely for report aesthetics). I’ve tried %eval() but can’t solve it.
%let var_date = '_'||today();
data date;
%eval(&var_date) = .;
run;
I’d like the variable name to be _02JUN2011. Thanks for any help.
This does what I’m looking for. Is this maintainable?