按不同的使用环境,SAS一共有七大类函数: 一,常规函数 ;二,windows 环境下函数;三,OpenVMS虚拟内存环境下函数; 四,z/OS操作环境下函数,五,宏语言函数;六,多国语言函数,七,其他函数 第一类函数常规函数最常用,数量也最多,这里依次列出所有的常规函数。 Character字符函数 函数名称 功能 ANYALNUM Function Searches a character string for an alphanumeric character, and returns the first position at which the character is found. ANYALPHA Function Searches a character string for an alphabetic character, and returns the first position at which the character is found. ANYCNTRL Function Searches a character string for a control character, and returns the first position at which that character is found. ANYDIGIT Function Searches a character string for a digit, and returns the first position at which the digit 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 char