Hello, I am not sure if this is the right way of doing it. I would like to add month and year to the title based on what month it is. I need to add one year, if month is January, February, and March, otherwise leave year as the current year. Below is my codes. %let today = %sysfunc(today()); %let pmo1= %sysfunc(putn(%sysfunc(intnx(month,&today,+3)),monname)); %let pmo2= %sysfunc(putn(%sysfunc(intnx(month,&today,+5)),monname)); IF &pmo1 IN ("January","February","March") OR &pmo2 in ("January","February","March") THEN %let OCYR= %SYSFUNC(year(%SYSFUNC(INTNX(year,&today,+1)))); ELSE %let OCYR= %sysfunc(year(&today)); title1 "Testing &pmo1 &ocyr &pmo2 &ocyr"; Result: Testing November 2018 January 2019. Thank you.
... View more