SAS_Institute
A00-212 · Question #113
The following SAS program is submitted: %macro test(var); %let jobs = BLACKSMITH WORDSMITH SWORDSMITH; %let type = %index(&jobs,&var); %mend; %test(SMITH) Which one of the following is the resulting…
The correct answer is C. 6. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
%macro test(var); %let jobs = BLACKSMITH WORDSMITH SWORDSMITH; %let type = %index(&jobs,&var); %mend; %test(SMITH) Which one of the following is the resulting value of the macro variable TYPE?
Options
- A0
- B3
- C6
- Dnull
How the community answered
(23 responses)- A13% (3)
- B9% (2)
- C74% (17)
- D4% (1)
Community Discussion
No community discussion yet for this question.