Hi Members, In the SAS documentation, it says " The ELSE statement, if used, must immediately follow the IF-THEN statement." I am trying to understand the above meaning but is confused when the below codes are valid and at line 6, the else statement does not immediately follow the if-then statement. Anyone can enlighten me? data storm_cat;
set pg1.storm_summary;
keep Name Basin MinPressure StartDate PressureGroup;
if MinPressure=. then PressureGroup=.;
else if MinPressure<=920 then PressureGroup=1;
else PressureGroup=0;
run;
... View more