Array sc(3) score1 score2 score3; Array new (3) ns1 ns2 ns3; DO i=1 TO 3; IF sc(i)=777 then new(i)= .; else if sc NE 777 then new(i) = sc(i) ; end; run;
Or even terse would be just one statement and that is
if sc(i) NE 777 then new(i) = sc(i) ;
Coz new(i) is anyway initialised with .
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!