x=15;
if x<2 then do ;
z=x*2-1;output;end;
else if x<10 then do ;
h=x**2;output;end;
else do;
y=x-10;output;end;
run;
上面这个简单的程序,对于if语句不是直接跳到符合条件的那个嘛?为什么运行之后数据集中还会出现z,h,怎样弄才不会有这个问题?

|
楼主: 陈苑利
|
1670
5
为什么数据集中还会出现z,h呢? |
|
高中生 65%
-
|
| ||
|
|
| ||
| ||
|
playmore邀请您访问ChinaTeX论坛!!!进入ChinaTeX论坛
|
||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


