By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (115)

The following SAS program is submitted:

data work.january;
    set work.allmonths (keep=product month num_sold cost);
    if month='jan'then output work.january;
    sales=cost*num_sold;
    keep=product sales;
run;

Which variables does the WORK.JANUARY data set contain?

A. PRODUCT and SALES only
B. PRODUCT, MONTH, NUM_SOLD and COST only
C. PRODUCT, SALES, MONTH, NUM_SOLD and COST only
D. An incomplete output data set is created due to syntax errors.

3 comments | Add One

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

    D

  2. su - 04/12/2014 at 12:20 pm

    Could you please explain why incomplete output and what is the syntax error?? Thanks in advance

  3. ma - 12/9/2014 at 12:59 pm

    Keep statement is written without equal sign.

Leave a Comment

Leave a Reply

Your email address will not be published.