SAS Certified Adv Programmer 130 Questions (42)
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?
A. 0
B. 3
C. 6
D. null
Topics:
SAS Adv Questions |
2 Comments »
C
%index function enables you to determine the position of the first character of a string within another string