Usage Note 35758: New "ANY" functions in SAS® 9 and later releases can search for various types of characters in a string
The functions listed below provide additional capabilities for searching a string for various types of character data. They were made available beginning in SAS 9.
At the end of the list is a link to the section of the SAS 9.1.3 documentation for functions by category. If you click the link, the Web page you will go to has more live links you can click to get to the various functions.
- ANYALNUM Function
- Searches a character string for an alphanumeric character and
returns the first position at which it is found
- ANYALPHA Function
- Searches a character string for an alphabetic character and
returns the first position at which it is found
- ANYCNTRL Function
- Searches a character string for a control character and returns
the first position at which it is found
- ANYDIGIT Function
- Searches a character string for a digit and returns the first
position at which it is found
- ANYFIRST Function
- Searches a character string for a character that is valid as the
first character in a SAS variable name under VALIDVARNAME=V7, and
returns the first position at which that character is found
- ANYGRAPH Function
- Searches a character string for a graphical character and returns
the first position at which it is found
- ANYLOWER Function
- Searches a character string for a lowercase letter and returns
the first position at which it is found
- ANYNAME Function
- Searches a character string for a character that is valid in a
SAS variable name under VALIDVARNAME=V7, and returns the first
position at which that character is found
- ANYPRINT Function
- Searches a character string for a printable character and returns
the first position at which it is found
- ANYPUNCT Function
- Searches a character string for a punctuation character and
returns the first position at which it is found
- ANYSPACE Function
- Searches a character string for a white-space character (blank,
horizontal and vertical tab, carriage return, line feed, form
feed) and returns the first position at which it is found
- ANYUPPER Function
- Searches a character string for an uppercase letter and returns
the first position at which it is found
- ANYXDIGIT Function
- Searches a character string for a hexadecimal character that
represents a digit and returns the first position at which that
character is found
If you would like to a list of functions by category, click Functions and CALL Routines.
If you would like to see what characters would be found by the functions in your ASCII or EBCDIC environment, see SAS Note
15435 "Determining which characters the ANY* and NOT* functions find."
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9 TS M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
| Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
| Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
| Microsoft Windows 2000 Server | 9 TS M0 | |
| Microsoft Windows 2000 Professional | 9 TS M0 | |
| Microsoft Windows NT Workstation | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
| Microsoft Windows XP Professional | 9 TS M0 | |
| 64-bit Enabled AIX | 9 TS M0 | |
| 64-bit Enabled HP-UX | 9 TS M0 | |
| 64-bit Enabled Solaris | 9 TS M0 | |
| HP-UX IPF | 9 TS M0 | |
| Linux | 9 TS M0 | |
| OpenVMS Alpha | 9 TS M0 | |
| Tru64 UNIX | 9 TS M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Searches for numerics, characters, control characters, digits, graph, lower, upper, print, punctuation, space, upper, as well a few more.
| Type: | Usage Note |
| Priority: | |
| Topic: | SAS Reference ==> Functions ==> Character String Matching
|
| Date Modified: | 2009-06-05 11:19:47 |
| Date Created: | 2009-04-30 16:13:48 |