By admin | August 25, 2009

SAS Certified Base Programmer 123 Questions (2)

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

libnamesastemp '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?

A.
400 for PROC PRINT
4500 for PROC MEANS

B.
401 for PROC PRINT
4501 for PROC MEANS

C.
401 for PROC PRINT
4500 for PROC MEANS

D.
500 for PROC PRINT
5000 for PROC MEANS

3 comments | Add One

  1. admin - 08/25/2009 at 10:10 am

    B

  2. Dee - 11/5/2009 at 6:54 am

    Isn’t there an error in the firstobs part? I would have considered B as an option if it read firstobs= and not firsttobs=.

  3. admin - 11/5/2009 at 9:04 am

    Thank you very much. It’s a typo.

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *