Exam A00-211 All QuestionsBrowse all questions from this exam
Question 56

FILL BLANK

-

The following SAS program is submitted:

What value will SAS assign to Pos? Enter your numeric answer in the space below.

    Correct Answer:

    The FIND function in SAS is used to find the position of a substring within a string. The parameters for the FIND function in this program are as follows: the string ('Text'), the substring to search for ('US'), an option to ignore case ('i'), and the start position for the search (5). This means SAS will start searching for 'US' from the 5th character of the string. The input string is 'US - Australia - Denmark'. Starting from the 5th character, which is ' ', the next 'US' is found at the 12th position. Therefore, SAS will assign the value 12 to Pos.

Discussion
ExamHW

7 is correct