全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2115 2
2009-03-08

Given the sas data set:

One group sum

A  765

B  123

C  564

The following sas program is submitted:

data _null_;

set one;

cal symput(group,sum);

stop; run

what is the result when the program finishes execution?

A . Macro variable A has a value of 765.

b.  Macro variable C has a value of 564.

C Macro variable GROUP has a value of 564.

D Macro variable GROUP has a value of SUM

Answer:A

在A00-202上面答案是B。在A00-212上面答案是A。请问到底哪个答案是正确的。谢谢。

二维码

扫码加我 拉你入群

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

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

全部回复
2009-3-8 15:30:00

A is the correct answer.because the first input the group is 765

[此贴子已经被作者于2009-3-8 16:13:11编辑过]

二维码

扫码加我 拉你入群

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

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

2009-3-9 02:25:00

The program stops in the first iteration after executing the statement:
 cal symput(group,sum); because of the STOP statement.

If there is no STOP statement, the program run to the last record. 
Therefore, the correct answer will be B.

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群