nerdexam
SAS_Institute

A00-212 · Question #71

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…

The correct answer is A. A macro variable DATE with the value 12SEP2008 is retrieved from the global symbol table. See the full explanation below for the reasoning.

Question

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?

Options

  • AA macro variable DATE with the value 12SEP2008 is retrieved from the global symbol table.
  • BA macro variable DATE with the value 31DEC2006 is retrieved from the global symbol table.
  • CA macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for
  • DA macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for

How the community answered

(39 responses)
  • A
    82% (32)
  • B
    5% (2)
  • C
    3% (1)
  • D
    10% (4)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice