By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (116)

The following SAS program is submitted:

data work.totalsales;
    set work.monthlysales(keep=year product sales);
    retrain montnsales {12};
    array montnsales {12};
    doi=1 to 12;
        monthsales{i}=sales;
    end;
    ent+1;
    monthsales{ent}=sales;
run;

The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations.

Which one of the following is the result of the above program?

A. The program fails execution due to data errors.
B. The program fails execution due to syntax errors.
C. The program runs with warnings and creates the WORK.TOTALSALES data set with 60 observations.
D. The program runs without errors or warnings and creates the WORK.TOTALSALES data set with 60 observations.

3 comments | Add One

  1. admin - 10/9/2009 at 10:51 am

    B

  2. chayan - 12/21/2011 at 2:13 am

    pls xplain…

  3. chentail - 02/18/2013 at 3:35 pm

    array does not store with data set

    retrain montnsales {12};

Leave a Comment

Leave a Reply

Your email address will not be published.