The following SAS program is submitted:%macro one (input);%two;%put the value is &date;%mend;%macro two;data _null_;call symput('date','12SEP2008');run;%mend;%let date=31DEC2006;%one(&date)What is the result when the %PUT statement executes?
A. A macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the ONE macro
B. A macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the TWO macro
C. A macro variable DATE with the value 12SEP2008 is retrieved from the global symbol table
D. A macro variable DATE with the value 31DEC2006 is retrieved from the global symbol table
The following SAS program is submitted:%macro one (input);%two;%put the value is &date;%mend;%macro two;data _null_;call
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The following SAS program is submitted:%macro one (input);%two;%put the value is &date;%mend;%macro two;data _null_;call
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!