我有这么一段程序
data ;
do years=1 to 5;
do month=1 to 12;
x+1;
output;
end;
end;
run;
proc print;
run;
输出结果是
Obs years month x
60 5 12 60
--------------------------------------------------------
另一段程序
data ;
do years=1 to 5;
do month=1 to 12;
x+1;
end;
end;
run;
proc print;
run;
输出结果是
Obs years month x
1 6 13 60
---------------------------------------------
两段程序唯一不同的就是中间的那个output; 。能否麻烦好心人解释下,有无这个output; 结算过程上,具体怎么影响输出结果的。(输出结果不同部分,我用红笔画出来了。)
感恩~