SAS中文论坛

标题: 问题解答 [打印本页]

作者: shiyiming    时间: 2012-3-6 10:05
标题: 问题解答
The sasdata.banks data set has five observations when the following sas program is submitted:
libname sasdata 'SAS-data-library';
data a;
set sasdata.banks;
capital=0;
do year=2000 to 2020 by 5;
capital+((capital+2000)*rate);
output;
end;
run;
How man observatioons will the a data set contain?
The correct answer is 25.
WHY???
作者: shiyiming    时间: 2012-3-8 16:47
标题: Re: 问题解答
每条输出5条记录,有5条记录,因此总共:5X5=25
作者: shiyiming    时间: 2012-3-27 09:31
标题: Re: 问题解答
谢谢谢谢!!!!




欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/) Powered by Discuz! X3.2