SAS技术
- 选择连续的多个column
data test;
set dataset(keep= a -- d);
run;
- 判断除数是否为零
data test;
length c 8.;
set datset;
if b ^= 0 then c=a/b;
else c=.;
run;
data test;
set dataset(keep= a -- d);
run;
data test;
length c 8.;
set datset;
if b ^= 0 then c=a/b;
else c=.;
run;