By admin | September 28, 2009

SAS Certified Base Programmer 123 Questions (84)

The following SAS program is submitted:

data work.sales;
    do year = 1 to 5;
        do month = 1 to 12;
            x + 1;
        end;
    end;
run;

Which one of the following represents how many observations are written to the WORK.SALES data set?

A. 0
B. 1
C. 5
D. 60

3 comments | Add One

  1. admin - 09/28/2009 at 9:55 am

    B

  2. Bakul - 12/16/2010 at 6:49 pm

    How is B?
    Is it not D(60)?

  3. sudha - 12/19/2010 at 2:32 am

    B because no output statement…so only the last value of month and year is saved..

Leave a Comment

Leave a Reply

Your email address will not be published.