nerdexam
SAS_Institute

A00-202 · Question #20

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 B. 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.
  • BThe view SASUSER.RANCH must be processed before SASUSER.CONDO is created.
  • CA second VIEW=SASUSER.CONDO option was omitted on the DATA statement.
  • DA SAS data file and SAS data view cannot be created in the same DATA step.

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    72% (33)
  • C
    9% (4)
  • D
    15% (7)

Community Discussion

No community discussion yet for this question.

Full A00-202 Practice