Consider the following SAS log:
229 data sasuser.ranch sasuser.condo / view = sasuser.ranch;
230 set sasuser.houses;
231 if style = 'RANCH' then output sasuser.ranch;
232 else if style = 'CONDO' then output sasuser.condo;
233 run;
NOTE:
DATA STEP view saved on file SASUSERRANCH. NOTE:
A stored DATA STEP view cannot run under a different operating system.
234
235 proc print data = sasuser.condo;
ERROR:File SASUSER.CONDO.DATA does not exist.
236 run;
NOTE: The SAS System stopped processing this step because of errors.
Which one of the following explains why the PRINT procedure fails?
A. SASUSERCONDO 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=SASUSERCONDO option was omitted on the DATA statement.
D. The view SASUSERRANCH must be processed before SASUSERCONDO is
created.
为什么Answer: D
谢谢答复
l*********s 发帖数: 5409
2
view is basically a stored compiled procedure, no data itself.