题目是这样子的:
The sasdata.banks data set has five obs when the following SAS program is
submitted:
libnamesasdata 'SAS-date-library';
data allobs;
set sasdata.banks;
capital=0;
do year=2000 to 2020 by 5;
capital+((capital+2000)*rate);
output;
end;run;
proc print data=allobs;run;
How many observations will the ALLOBS data set contain?
结果是25,一头雾水啊。题目没有给sasdata.banks是个啥,这样怎么能知道allobs有
多少个呢?我怎么看都觉得是5个obs
谢谢大家指教!!
s******r 发帖数: 1524
2
sasdata.banks data set has five obs
5*5=25
【在 x**********t 的大作中提到】 : 题目是这样子的: : The sasdata.banks data set has five obs when the following SAS program is : submitted: : libnamesasdata 'SAS-date-library'; : data allobs; : set sasdata.banks; : capital=0; : do year=2000 to 2020 by 5; : capital+((capital+2000)*rate); : output;