有个SAS教程讲循环语句,举例为:
data temp;
do class =1 to 2;
input x y @@;
output;
end;
cards;
34 56 78 90 35 67 89 10 23 65 77 45
;
run;
proc print;
run;
程序运行结果为:
Obs class x y
1 1 34 56
2 2 78 90
3 1 35 67
4 2 89 10
5 1 23 65
6 2 77 45
弱弱的问一句,为什么 obs=3时class的值会从2变为1?
求前辈指点。谢谢