Hi @ssll,
You could avoid the %IF-%THEN/%ELSE statements like this:
%let m=NNEEEERRREEE;
%let N=no report will be generated;
%let R=quarter to date comparison report;
%let E=not in Q3 and not in Jan or Feb;
%let c=%substr(&m,¤t_month_num,1);
%put &&&c;
However, I suspect that you actually want to execute some reporting statements if &c=R. In this case you could at least avoid the nesting:
%let m=NNEEEERRREEE;
%let N=no report will be generated;
%let E=not in Q3 and not in Jan or Feb;
%let c=%substr(&m,¤t_month_num,1);
%if &c=R %then %do;
%inc 'C:\Temp\myQtoDreport.sas' / source;
%end;
%else %do;
%put &&&c;
%end;
... View more