楼主: lqyrendajinji
3205 10

SAS Base exam one question [推广有奖]

  • 0关注
  • 0粉丝

已卖:1份资源

博士生

16%

还不是VIP/贵宾

-

威望
0
论坛币
566 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
2322 点
帖子
290
精华
0
在线时间
105 小时
注册时间
2009-7-15
最后登录
2022-10-12

楼主
lqyrendajinji 发表于 2010-1-13 15:05:06 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Consider the following data step:
data WORK.NEW /debug;
    set WORK.OLD;
    Count+1;
run;

The variable Count is created using a sum statement. Which
statement regarding this variable is true?

        A.
It is assigned a value 0 when the data step begins execution.

     B.
It is assigned a value of missing when the data step begins execution.

     C.
It is assigned a value 0 at compile time.

     D.
It is assigned a value of missing at compile time.

My amswer is A.
Please give any comment.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:SAS base question Quest Base Exam Exam SAS Baes

沙发
horace_chen 发表于 2010-1-13 17:11:26
C .

the SUM statement is a compile-time instruction exactly equivalent to using the SUM function and the RETAIN statement:
   retain variable 0;
  variable=sum(variable,expression);

so.....
data WORK.NEW /debug;
    set WORK.OLD;
  retain count 0;
    count=sum(Count,1);
run;

藤椅
wb8686 发表于 2010-1-13 21:58:12
请问这是今天的考题吗?我15号考试,能加我吗?MSN:benwan2009@hotmail.cm。QQ:913348978

板凳
fufufish 发表于 2010-1-13 22:11:09
c,昨天我考的时候有这一题

报纸
zzh256 发表于 2010-1-14 00:16:45
It seems not  work in SAS with  "/debug".

地板
bobguy 发表于 2010-1-14 08:21:13
lqyrendajinji 发表于 2010-1-13 15:05
Consider the following data step:
data WORK.NEW /debug;
    set WORK.OLD;
    Count+1;
run;

The variable Count is created using a sum statement. Which
statement regarding this variable is true?

        A.
It is assigned a value 0 when the data step begins execution.

     B.
It is assigned a value of missing when the data step begins execution.

     C.
It is assigned a value 0 at compile time.

     D.
It is assigned a value of missing at compile time.

My amswer is A.
Please give any comment.
Here is a way to see.

206  data t1;
207    x=1;
208    output; output; output;
209    run;

NOTE: The data set WORK.T1 has 3 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


210
211  data _null_;
212    put '0>>> ' _all_;
213    stop;
214    do until(end);
215    put '1>>> ' _all_;
216    set t1 end=end nobs=nobs;
217     put '2>>>' _all_;
218    c+1;
219     put '3>>>' _all_;
220     end;
221   run ;

0>>> end=0 nobs=3 x=. c=0 _ERROR_=0 _N_=1
NOTE: There were 1 observations read from the data set WORK.T1.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

7
chuixue 发表于 2010-1-14 14:24:00
C.   it's in the zhen ti from Nov last year

8
lqyrendajinji 发表于 2010-1-16 03:33:28
Thanks very much

9
yangzhihuibobo 发表于 2010-1-27 14:54:53
答案选第三个。

10
蓝色王子12345 发表于 2010-2-2 15:46:21
谢谢不错、、、、、、、、、

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 01:05