以下为昨天微信收到的sas程序,不是很理解为啥要做Y赋值“.”,求解释。谢谢!
data a;
input x y;
cards;
1 2
2 3
3 .
4 5
;
run;
data b;
input x z;
cards;
1 10
2 .
3 .
4 40 ;
run;
目标程序
data final;
y=.;
set a b(in=b);
if b and z=. then y=999;
proc print;
run;