I have a macro variable in date yyyymm format, where yyyy is year like 2020 and mm is month like 02, as shown below:
%let m=202002;
How can I construct a macro variable m_new having as many months in the past as we specify? For eg; if num is 5, we get a macro variable having that many months from the past including the one itself. Something like
%put &m_new.
202002 202001 201912 201911 201910