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. |