全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
8075 4
2016-01-12

sas base 123题中的第91
The following SAS program is submitted:
proc report data = work.houses nowd;
column style price;
where prices <100000;
<insert DEFINE statements here>
title;
run;
Exhibit: the output from the REPORT procedure.
捕获.JPG
Assume permanent variable labels have been assigned.
Which one of the following completes the program and produces the output
displayed in the exhibit?
A. define style / display width = 9;
define price / sum format = comma9. width = 10;
B. define style / width = 9;
define price / sum format = comma9. width = 10;
C. define style / group width = 9;
define price / sum format = comma9. width = 10;
D. define style / order width = 9;
define price / sum format = comma9. width = 10;

answer:D     why?

A后用display 为什么不可以?  sum group display across 的用法


二维码

扫码加我 拉你入群

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

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

全部回复
2016-1-14 17:37:50
A: "DISPLAY"选项会把'style'的每条记录都列出来;
B:DEFINE后无选项,按默认"DISPLAY"处理;
C: "GROUP"和"SUM"联合使用的话,每个"GROUP"只显示一条汇总结果;
D: "ORDER"与"DISPLAY"的区别是同一个组别'style'只显示一次。
二维码

扫码加我 拉你入群

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

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

2017-11-2 11:37:53
extension 发表于 2016-1-14 17:37
A: "DISPLAY"选项会把'style'的每条记录都列出来;
B:DEFINE后无选项,按默认"DISPLAY"处理;
C: "GROUP ...
最近在学,受教了
二维码

扫码加我 拉你入群

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

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

2018-7-11 13:09:09
“group” creates one row for each unique value of the variable,
while “order” creates one row for each observation with rows arranged according to the values of the order variable.
So the option is “order” here.
二维码

扫码加我 拉你入群

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

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

2019-5-4 05:42:08
extension 发表于 2016-1-14 17:37
A: "DISPLAY"选项会把'style'的每条记录都列出来;
B:DEFINE后无选项,按默认"DISPLAY"处理;
C: "GROUP ...
简单明了,感谢感谢!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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