A00-211 Exam QuestionsBrowse all questions from this exam

A00-211 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.

Show Answer
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

1 comment
Sign in to comment
ExamHW
Feb 11, 2024

7 is correct