This article explains how to use the INDEX function in SAS. It includes several examples that you can practice with to become proficient in using the INDEX function.
What does the INDEX Function do?
The INDEX function in SAS is used to return the position of the first occurrence of a substring within a character string.
Syntax: INDEX Function
The syntax of the INDEX Function is as follows –
INDEX(string, substring)
string: The string within which you want to find the substring.
substring: The substring you want to find within the string.
READ MORE »
Read MoreListenData