楼主: baobaozhu
5521 6

[原创博文] 求教ADV真题里的第11题,关于DATA view [推广有奖]

  • 0关注
  • 0粉丝

初中生

4%

还不是VIP/贵宾

-

威望
0
论坛币
281 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
112 点
帖子
2
精华
0
在线时间
17 小时
注册时间
2005-10-9
最后登录
2017-1-24

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
11, The following SAS code is submitted:
data WORK.TEMP WORK.ERRORS/view=WORK.TEMP;
infile RAWDDATA;
input Xa Xb Xc;
if Xa=. then output WORK.ERRORS;
else output WORK.TEMP;
run;

which of the following is true of the WORK.ERRORS data set?

A The data set is created when the DATA step is submitted
B The data set is created when the view TEMP is used in another SAS step
C The data set is not created because the DATA statement contains a syntax
error.
D The descriptor portion of WORK.ERRORS is created when the DATA step is
submitted


我自己建了一个external file然后试了一下,发现可以成功的compile啊,log也没说有错误,请问为什么答案说选C呢
二维码

扫码加我 拉你入群

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

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

关键词:Data view VIE Data step following following because another created

沙发
hssnow 发表于 2011-2-20 15:35:48 |只看作者 |坛友微信交流群
记不太清了,好像是“WORK.ERRORS/view=WORK.TEMP;”有问题
My Blog: http:/hssnow.name/
宁静致远

使用道具

藤椅
huanglunbu 发表于 2011-9-12 22:41:26 |只看作者 |坛友微信交流群
如果说有错误的话,那就是RAWDDATA没加引号。

使用道具

板凳
MathyCee 发表于 2014-7-26 04:58:32 |只看作者 |坛友微信交流群
所以这道题是应该选C的?

使用道具

报纸
moraine123 发表于 2015-12-24 16:03:09 |只看作者 |坛友微信交流群
应该选B吧,只有TEMP被使用的时候才执行这段data step。

使用道具

地板
rendajingguan01 发表于 2016-5-18 10:20:58 |只看作者 |坛友微信交流群
moraine123 发表于 2015-12-24 16:03
应该选B吧,只有TEMP被使用的时候才执行这段data step。
没看懂原因,为什么选B。

谢谢。

使用道具

7
rendajingguan01 发表于 2016-5-18 10:51:42 |只看作者 |坛友微信交流群
The VIEW= option tells SAS to compile, but not to execute, the source program and to store the compiled code in the DATA step view that is named in the option.

Note:If you specify additional data files in the DATA statement, SAS creates these data files when the view is processed in a subsequent DATA or PROC step. Therefore, you need to reference the data view before you attempt to reference the data files in later steps.

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 14:32