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.
Topics:
SAS Adv Questions |
2 Comments »
A
A. the datastep is invalid.
set old(keep= A B);
Newvar=ab;
run;
run;