如题。
题目如下:
Consider the following SAS log:
data sasuser.ranch sasuser.condo / view=sasuser.ranch;
set sasuser.houses;
if style='RANCH' then output sasuser.ranch;
else if style='CONDO' then output sasuser.condo;
run;
(NOTE: DATA STEP view saved on file SASUSER.RANCH.
NOTE: A stored DATA STEP view cannot run under a different operating system.)
proc print data=sasuser.condo;
(EROR: File SASUSER.CONDO.DATA does not exist.)
run;
(NOTE: The SAS System stopped processing this step because of errors.)
Which one of the following explains why the PRINT procedure fails?
A. SASUSER.CONDO is a stored DATA step program.
B. A SAS data file and SAS data view cannot be created in the same DATA step.
C. A second VIEW=SASUSER.CONDO option was ommited on the DATA statement.
D. The view SASUSER.RANCH must be processed before SASUSER.CONDO is created.
题目中是没有括号的,但为了格式清晰,我就加上啦。
答案应该D。
麻烦大家解释一下这道题啦,谢谢!