By admin | September 28, 2009

SAS Certified Base Programmer 123 Questions (88)

The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a permanent label of “Asking Price”. Which one of the following SAS programs temporarily replaces the label “Asking Price” with the label “Sale Price” in the output?

A.

proc print data = sasuser.houses;
    label price = "sale Price";
run;

B.

proc print data = sasuser.houses label;
    label price "Sale Price";
run;

C.

proc print data = sasuser.houses label;
    label price = "Sale Price";
run;

D.

proc print data = sasuser.houses label = "Sale Price";
run;

3 comments | Add One

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

    C

  2. Dee - 11/9/2009 at 4:59 am

    The answer should be:
    proc print data = sasuser.houses label;
    label price = “Sale Price”;
    run;

    In this example, B and C are exactly the same.

  3. admin - 11/9/2009 at 9:19 am

    Thank you very much! I modified the C just now.

Leave a Comment

Leave a Reply

Your email address will not be published.