Free A00-212 Exam Braindumps (page: 19)

Page 18 of 47

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

  1. SASUSER.CONDO is a stored DATA step program.
  2. A SAS data file and SAS data view cannot be created in the same DATA step.
  3. A second VIEW=SASUSER.CONDO option was omitted on the DATA statement.
  4. The view SASUSER.RANCH must be processed before SASUSER.CONDO is created.

Answer(s): D



Which one of the following is an advantage of creating and using a SAS DATA step view?

  1. It can store an index.
  2. It always accesses the most current data.
  3. It works quickly through multiple passes of the data.
  4. It is useful when the underlying data file structure changes.

Answer(s): B



Given the following SAS data sets ONE and TWO:

ONE TWO
YEAR QTR BUDGET YEAR QTR SALES
2001 3 500 2001 4 300
2001 4 400 2002 1 600
2002 1 700
The following SAS program is submitted:
proc sql;
select one.*, sales
from one, two;
quit;

Which one of the following reports is generated?

  1. YEAR QTR BUDGET SALES
    2001 4 400 300
    2002 1 700 600
  2. YEAR QTR BUDGET SALES
    2001 3 500
    2001 4 400 300
    2002 1 700 600
  3. YEAR QTR BUDGET SALES
    2001 3 500 300
    2001 4 400 300
    2002 1 700 600
  4. YEAR QTR BUDGET SALES
    2001 3 500 300
    2001 4 400 300
    2002 1 700 300
    2001 3 500 600
    2001 4 400 600
    2002 1 700 600

Answer(s): D



Given the following SAS data set ONE:
ONE
NUM VAR
1 A
2 B
3 C

Which one of the following SQL programs deletes the SAS data set ONE?

  1. proc sql;
    delete table one;
    quit;
  2. proc sql;
    alter table one
    drop num, var;
    quit;
  3. proc sql;
    drop table one;
    quit;
  4. proc sql;
    delete from one;
    quit;

Answer(s): C






Post your Comments and Discuss SAS Institute A00-212 exam with other Community members:

A00-212 Discussions & Posts