Let say I want to create a macro variable like:
%let year=2019;
%let ye = SUBSTR(%year,3,2) (I want to extract 19 from 2019).
But it does not work. Do we have any of creating such a macro variable like this?
Update: My code in fact is like
%let yearend = 2019
% let monthend = 04
And now I want to create a macro variable like "data1904" in order to use the dataset named "data1904" in my library. So what I want to create is something like
%let dataname= CAT(SUBSTR(%yearend,3,2),%monthend)