Searches for a specific substring of characters within a character string.
| Category: | Character |
| Restriction: | I18N Level 1 functions should be avoided, if possible, if you are using a non-English language. The I18N Level 1 functions might not work correctly with Double Byte Character Set (DBCS) or Multi-Byte Character Set (MBCS) encodings under certain circumstances. |
| Tip: | Use the KINDEX Function in SAS National Language Support (NLS): Reference Guide instead to write encoding independent code. |
specifies a character constant, variable, or expression that will be searched for substrings.
| Tip | Enclose a literal string of characters in quotation marks. |
is a character constant, variable, or expression that specifies the substring of characters to search for in string.
| Tip | Enclose a literal string of characters in quotation marks. |
is a character constant, variable, or expression that specifies one or more modifiers. The following modifiers can be in uppercase or lowercase:
ignores character case during the search. If this modifier is not specified, FIND only searches for character substrings with the same case as the characters in substring.
is a numeric constant, variable, or expression with an integer value that specifies the position at which the search should start and the direction of the search.