Hi there, I have entered the following 2 sets of codes, even though sas log says there is no syntax error but sas has generated the wrong output for both set of codes(both sets of codes shown below were pasted from sas log ). Can you please point out my mistake? Or is there a glitch in sas? Any help or any comment is highly appreciated. Thanks a lot for your help! first set of codes: 71 %let today = %sysfunc(today(), date9.); 72 %put &today; 21SEP2025 73 %let Ichoose = %sysfunc(putn('01Nov2025'd, date9.)); 74 %put &Ichoose; 01NOV2025 75 %if %sysevalf(&today < &Ichoose) %then %do ; 76 %put abcd; 77 %end; 78 %else %do; 79 %put efgh ; efgh 80 %end; second set of codes: 69 %let today = %sysfunc(today(), date9.); 70 %put &today; 21SEP2025 71 %let Ichoose = %sysfunc(putn('01Nov2025'd, date9.)); 72 %put &Ichoose; 01NOV2025 73 %if %sysevalf(&today > &Ichoose) %then %do ; 74 %put abcd; abcd 75 %end; 76 %else %do; 77 %put efgh ; 78 %end;
... View more