data a1;
input a@@;
cards;
1 2 3 4 5 6
;
run;
data a2;
set a1;
select ;
when (a=1) b=a*10;
when (a=2 or a=3 or a=5) b=a*100;
otherwise;
end;
run;
data a3;
set a1;
select (a);
when (1) b=a*10;
when (2,3,5) b=a*100;
otherwise;
end;
run;作者: shiyiming 时间: 2006-4-18 16:48 标题: 我搞清楚啦 因为我用的是8.2调试的。在9.0中结果就正确啦。哈哈