This is within a macro function. Example termdate = 01/01/2007 %do II = 0 %to 11;
%let x = %sysfunc(intnx(month,&termdate.,&ii,B),Date9.);
%let t = %str(%')&x.%str(%')d;
%put &t.;
%put ⅈ
%if %sysevalf(&t.) ge '01FEB2018'd %then %do; the %put &t. produces: '01JAN2007'd but then when I use it in the %if statement below it evaluates to TRUE when using Mlogic option. It should be False. This is how it should look when the macro variable has been resolved. %if '01JAN2007'd ge '01FEB2018'd %then %do; Should be false but it comes out true.
... View more