nerdexam
SAS_Institute

A00-212 · Question #2

The following SAS program is submitted: %macro one(input); %two %mend; %macro two; data _null_; call symputx('date', '12SEP2008', 'G'); run; %put the value is &date; %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 %mend; %macro two; data null; call symputx('date', '12SEP2008', 'G'); run; %put the value is &date; %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 12SEP2008 is retrieved from the local symbol table for
  • CA macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for
  • DA macro variable DATE with the value 31DEC2006 is retrieved from the local symbol table for

How the community answered

(24 responses)
  • A
    83% (20)
  • B
    4% (1)
  • C
    4% (1)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice