By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (28)

The following SAS program is submitted:

data work.report;
    set work.sales_info;
    if qtr(sales_date) ge 3;
run;

The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value for each of the twelve months.

How many of the original twelve observations in WORK.SALES_INFO are written to the WORK.REPORT data set?

A. 2
B. 3
C. 6
D. 9

3 comments | Add One

  1. admin - 09/8/2009 at 7:35 pm

    C

  2. sowmya - 12/22/2010 at 10:45 am

    can some one please explain this one…

  3. Jenny G - 01/26/2011 at 2:00 am

    @sowmya, if qtr(sales_date) ge 3, output when the quarter is greater than or equal to 3, that is to say, quarter 3 and 4. There are six months for quarter 3 and 4 in 2000. So six observations are written.

Leave a Comment

Leave a Reply

Your email address will not be published.