全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
4200 4
2015-07-10
请教一下base 123 中的两道题:
79.
The following SAS program is submitted:
data work.products;
Product_Number=5461;
Item = '1001';
Item_Reference=Item||'/'||Product_Number;
run;
Which one of the following is the value of the variable ITEM_REFERENCE in the
output data set?
A. 1001/5461
B. 1001/ 5461
C. . (missing numeric value)
D. The value can not be determined as the program fails to execute due to errors.
答案为B
不太明白为什么5461前面会有空格呢?

103.
The following SAS program is submitted:
options pageno = 1;
proc prient data=sasuser. houses;
run;
proc means data=sasuser .shoes;
run;
The report created by the PRINT procedure step generates 5 pages of output.
What is the page number on the first page of the report generated by the MEANS
procedure step?
A. 1
B. 2
C. 5
D. 6

答案为D
不太清楚pageno=1的用法,是不是在第二行写了就只对下一行的proc print有用呢?

谢谢大家!

二维码

扫码加我 拉你入群

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

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

全部回复
2015-7-23 18:13:09
Product_Number 是数值型变量,||连接以后自动变成12位字符串,所以有空格。不知道我理解的是否正确。
二维码

扫码加我 拉你入群

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

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

2015-7-24 14:04:42
79: numeric的变量默认以best12.保存所以在连接的时候前面应该有8个空格
103: proc print 和proc means 都会默认往ods的路径(不设置ods则直接输出到sas output)输出结果,每页输出的结果有限,pageno就是分页的起始页码
二维码

扫码加我 拉你入群

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

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

2015-7-24 14:15:00
学习了~
二维码

扫码加我 拉你入群

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

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

2016-2-2 06:19:02

学习了~
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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