data crackman;
input id x y;
datalines;
1 2 3
2 3 4
4 5 6
7 8 9
;
run;
data result1;
set crackman;
if id=1 or 2 then num=0;
else num=1;
run;
data result2;
set crackman;
if id=1 or . then num=0;
else num=1;
run;
data result3;
set crackman;
if id=1 or 1 then num=0;
else num=1;
run;
data result4;
set crackman;
if id=9 or 1 then num=0;
else num=1;
run;
data result5;
set crackman;
if id=. or 1 then num=0;
else num=1;
run;
data result6;
set crackman;
if id=. or 2 then num=0;
else num=1;
run;