By admin | January 7, 2010

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

2 comments | Add One

  1. admin - 01/7/2010 at 2:56 pm

    C

  2. chinawokee - 07/9/2014 at 6:07 pm

    %index function enables you to determine the position of the first character of a string within another string

Leave a Comment

Leave a Reply

Your email address will not be published.