By admin | August 13, 2009

SAS Certified Adv Programmer 50 Questions (18)

The following SAS program is submitted:

%let code=set old (keep=A B);
    Newvar=a || b;
run;

data new;
    &code
run;

proc print data=new;
run;

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

a. There will be errors in the log and no report.
b. There will be no report and no errors in the log.
c. There will be a report that has only the variables A and B.
d. There will be a report that has the variables A, B, and Newvar.

2 comments | Add One

  1. admin - 08/13/2009 at 2:28 pm

    A

  2. Blaiso - 05/31/2013 at 10:59 pm

    A. the datastep is invalid.
    set old(keep= A B);
    Newvar=ab;
    run;
    run;

Leave a Comment

Leave a Reply

Your email address will not be published.