SAS_Institute
A00-202 · Question #45
SAS A00-202 Exam 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…
The correct answer is B. 6. See the full explanation below for the reasoning.
Question
SAS A00-202 Exam 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
- B6
- C3
- Dnull
How the community answered
(36 responses)- A17% (6)
- B72% (26)
- C8% (3)
- D3% (1)
Community Discussion
No community discussion yet for this question.