data work.invest;
do year=1990 to 2004;
Capital+5000;
capital+(capital*.10);
end;run;
data work.invest;
do year=1990 to 2004;
Capital+5000;
capital+(capital*.10);
output;
end;run;
关于以上两段代码,我想请教大家,为什么第一段的year的值是2005,而第二段是2004,这个output起的作用是什么?为什么输出了就直接跳出循环而year不再由2004变为2005?谢谢!