Hi , I want to write a nested if condition, data a; set b; If name= genny then do; if age <= 4 then class=1; if age <= 5 then class=2; if age <= 6 then class=3; end; else if name= kennedy then do; if age <= 4 then class=1; if age <= 5 then class=2; if age <= 6 then class=3; end; else run; please suggest a correct syntax.
... View more