A00-211 SAS Base Programming for SAS 9

Loading demo links...

Showing 7–9 of 15 questions

Question 7 (Volume B)

When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000 observations:

libname sasdata 'SAS-data-library'; options obs = 500;

proc print data = sasdata.prdsales (firstobs = 100); run; options obs = max;

proc means data = sasdata.prdsales (firstobs = 500); run;

How many observations are processed by each procedure?

Select an option, then click Submit answer.

  • 400 for PROC PRINT
    4500 for PROC MEANS

  • 401 for PROC PRINT
    4501 for PROC MEANS

  • 401 for PROC PRINT
    4500 for PROC MEANS

  • 500 for PROC PRINT
    5000 for PROC MEANS

Question 8 (Volume B)

Given the raw data file EMPLOYEE.TXT:

The following SAS program is submitted:

What value does the variable idnum contain when the name of the employee is “Ruth”?

Select an option, then click Submit answer.

  • 33

  • 22

  • 39

  • 44

Question 9 (Volume A)

The following SAS program is submitted:

data combine; prefix=’505’; middle=’6465 ‘; end=’09090’; ; run;

Which statement successfully completes the program so that TOTAL has a value of 505-646509090?

Select an option, then click Submit answer.

  • total = cat(’-’, prefix, middle, end);

  • total = catx(’-’, prefix, middle, end);

  • total = prefix !!’-’!! middle ‘‘!!’-’!! end;

  • total = prefix!!’-’!! left(middle)!!’-’!! end;