Functions That Search for Characters

Functions in this category enable you to search a string for specific characters or for a character category (such as a digit). Some of these functions can also locate the first position in a string where a character does not meet a particular specification. Quite a few of the functions in this section were added with SAS®9, and they provide some new and useful capabilities.

The “ANY” Functions (ANYALNUM, ANYALPHA, ANYDIGIT, ANYPUNCT, ANYSPACE, ANYUPPER, and ANYLOWER)

This group of functions is described together because of the similarity of their use. These functions return the location of the first alphanumeric, letter, digit, etc. in a character value. Note that there are other “ANY” functions besides ...

Get SAS Functions by Example, Second Edition, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.