I have one column name "month" which has 31 months
what I want to do is I want to limit the number of months
for example:- Current Month followed by two future months and 3 previous months followed by current month
Like if the current month is April then it has to show something like
FEb-MAR-APR(Current month)-MAY- JUN
Anyone know, How we can do it in SAS and it should change dynamically?
Current table column Month (Format dtdate9.)
01JAN2016 01FEB2016 01MAR2016 01APR2016 01MAY2016 01JUN2016 01JUL2016 01AUG2016 01SEP2016 01OCT2016 01NOV2016 01DEC2016 01JAN2017 01FEB2017 01MAR2017 01APR2017 01MAY2017 01JUN2017 01JUL2017 01AUG2017 01SEP2017 01OCT2017 01NOV2017 01DEC2017 01JAN2018 01FEB2018 01MAR2018 01APR2018 01MAY2018 01JUN2018 01DEC2018
Output:- I need two columns max date and min date: Max date will give +2 and min date will be -3 and for every current month it should change dynamically. These two columns max and min i will use in my reporting tool SAS VA as month between min & max
Thanks in advance