如果0也算缺失值的话
data a;
input x1 x2 x3;
cards;
1 2 3
. 2 6
0 5 9
;
run;
data b(drop=i);
set a;
array x _all_;
do i=1 to dim(x);
if x(i)=. then delete;
if x(i)=0 then delete;
end;run;
data a;
input x1 x2 x3;
cards;
1 2 3
. 2 6
0 5 9
;
run;
data b(drop=i);
set a;
array x _all_;
do i=1 to dim(x);
if x(i)=. then delete;
if x(i)=0 then delete;
end;run;