由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas adv 63题 11 (重发)
相关主题
sas adv 63题 第11讨论3道SAS ADV题目
SAS ADV 63题第11题求助[请教]Q20in sas advance new (dec)
sas adv问题sas advance 12月真题Q20请教
ADV 12月真题一问One question about data step in sas
今天刚去考了SAS ADV2013 January 刚考过SAS Adv
请教SAS ADV真题里一道题目sas advance questions
问几道SAS Adv的题how to create page x of y in SAS
SAS advanced 真题中请教一题SAS file question,thanks very mcuh
相关话题的讨论汇总
话题: data话题: created话题: sas话题: set话题: step
进入Statistics版参与讨论
1 (共1页)
p****8
发帖数: 50
1
答案给C, 可我认为是B。把我弄糊涂了!
The following SAS code is submitted:
data WORK.TEMP WORK.ERRORS / view=WORK.TEMP;
infile RAWDATA;
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.
s*********e
发帖数: 944
2
I don't understand either.
ask for help too~~~
v****0
发帖数: 1887
3
I am not sure about the answer.
But it is not difficult to figure it out when you try different input data
set, satisfying the restrictions given by the four choices.

【在 s*********e 的大作中提到】
: I don't understand either.
: ask for help too~~~

d******9
发帖数: 404
4
I believe the correct answer is B.
As for C,
C.
The data set is not created because the DATA statement contains a syntax
error.
I run it in SAS V9, only the view is created, however, it is error-free, no
syntax error in LOG at all.
p****8
发帖数: 50
5
答案给C, 可我认为是B。把我弄糊涂了!
The following SAS code is submitted:
data WORK.TEMP WORK.ERRORS / view=WORK.TEMP;
infile RAWDATA;
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.
c**********2
发帖数: 62
6
I was thinking none is correct. However, I guess when they made up the
question, they might want the answer to be B, which is the suggested answer
in your post. But, if you start a new session of SAS and run the posted code
, and then submit a step: proc contents data=work.temp; run; you can see in
the work lib that there is NO work.errors member. This means that, in the
sas step "proc contents", the work.errors file is NOT created, which makes B
also fault.
I did not try sql describe, but I assume if a step only uses the descriptor
portion of the view, then the work.errors data set will not be created.
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS file question,thanks very mcuh今天刚去考了SAS ADV
SAS数据处理问题:让缺失数据自动采用上个数据值请教SAS ADV真题里一道题目
一个sas base问题不明白,请教问几道SAS Adv的题
[合集] SAS data input helpSAS advanced 真题中请教一题
sas adv 63题 第11讨论3道SAS ADV题目
SAS ADV 63题第11题求助[请教]Q20in sas advance new (dec)
sas adv问题sas advance 12月真题Q20请教
ADV 12月真题一问One question about data step in sas
相关话题的讨论汇总
话题: data话题: created话题: sas话题: set话题: step