SAS Certified Adv Programmer 50 Questions (21)
The following SAS program is submitted at the start of a new SAS session:
%macro trans;
%let type=Airplane;
proc print data=sasuser.activities;
where trans="&type";
run;
%location(Automobile)
%put type is &type;
%mend;
%macro location(type);
data _null_;
call symput('type', 'Train');
run;
%mend;
%trans
Which one of the following is written to the log by the %PUT statement?
a. type is &type
b. type is Train
c. type is Airplane
d. type is Automobile
Topics:
SAS Adv Questions |
3 Comments »
C
C: type is Airplane
C. the value Train is rather that of a local macro variable valid inside the program location