The ANYDIGIT function is used to search for the first occurrence of a digit (numeral) in a string. It returns the position of the digit. If no digit is found, it returns a '0'. By using an optional parameter, the ANYDIGIT function can begin the search at any given position in the string.
Syntax:
ANYDIGIT(character-value <,start>)
The character-value is any SAS character expression, and the term start is an optional parameter that specifies the position within the string to begin the search.