nerdexam
SAS_Institute

A00-212 · Question #85

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'…

The correct answer is D. The view SASUSER.RANCH must be processed before SASUSER.CONDO is created. See the full explanation below for the reasoning.

Question

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 SASUSER.RANCH. NOTE: A stored DATA STEP view cannot run under a different operating system. 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?

Options

  • ASASUSER.CONDO is a stored DATA step program.
  • BA SAS data file and SAS data view cannot be created in the same DATA step.
  • CA second VIEW=SASUSER.CONDO option was omitted on the DATA statement.
  • DThe view SASUSER.RANCH must be processed before SASUSER.CONDO is created.

How the community answered

(43 responses)
  • A
    5% (2)
  • B
    5% (2)
  • C
    19% (8)
  • D
    72% (31)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice