Language Reference

Character and Formatting Functions

ANYALNUMsearches a character string for an alphanumeric character and returns the first position at which it is found
ANYALPHAsearches a character string for an alphabetic character and returns the first position at which it is found
ANYCNTRLsearches a character string for a control character and returns the first position at which it is found
ANYDIGITsearches a character string for a digit and returns the first position at which it is found
ANYFIRSTsearches 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
ANYGRAPHsearches a character string for a graphical character and returns the first position at which it is found
ANYLOWERsearches a character string for a lowercase letter and returns the first position at which it is found
ANYNAMEsearches 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
ANYPRINTsearches a character string for a printable character and returns the first position at which it is found
ANYPUNCTsearches a character string for a punctuation character and returns the first position at which it is found
ANYSPACEsearches 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
ANYUPPERsearches a character string for an uppercase letter and returns the first position at which it is found
ANYXDIGITsearches a character string for a hexadecimal character that represents a digit and returns the first position at which that character is found
BYTEreturns one character in the ASCII or EBCDIC collating sequence
CATconcatenates character strings without removing leading or trailing blanks
CATSconcatenates character strings and removes leading and trailing blanks
CALL CATSconcatenates character strings and removes leading and trailing blanks
CATTconcatenates character strings and removes trailing blanks
CALL CATTconcatenates character strings and removes trailing blanks
CATXconcatenates character strings, removes leading and trailing blanks, and inserts separators
CALL CATXconcatenates character strings, removes leading and trailing blanks, and inserts separators
CHOOSECreturns a character value that represents the results of choosing from a list of arguments
CHOOSENreturns a numeric value that represents the results of choosing from a list of arguments
COLLATEreturns an ASCII or EBCDIC collating sequence character string
COMPAREreturns the position of the left-most character by which two strings differ, or returns 0 if there is no difference
COMPBLremoves multiple blanks from a character string
CALL COMPCOSTsets the costs of operations for later use by the COMPGED function
COMPGEDcompares two strings by computing the generalized edit distance
COMPLEVcompares two strings by computing the Levenshtein edit distance
COMPRESSremoves specific characters from a character string
COUNTcounts the number of times that a specific substring of characters appears within a character string that you specify
COUNTCcounts the number of specific characters that either appear or do not appear within a character string that you specify
COUNTWcounts the number of words in a character expression
FINDsearches for a specific substring of characters within a character string that you specify
FINDCsearches for specific characters that either appear or do not appear within a character string that you specify
IFCreturns a character value that matches an expression
IFNreturns a numeric value that matches an expression
INDEXsearches a character expression for a string of characters
INDEXCsearches a character expression for specific characters
INDEXWsearches a character expression for a specified string as a word
INPUTCapplies a character informat at run time
INPUTNapplies a numeric informat at run time
LEFTleft aligns a character expression
LENGTHreturns the length of a character string
LENGTHCreturns the length of a character string, including trailing blanks
LENGTHMreturns the amount of memory (in bytes) that is allocated for a character string
LENGTHNreturns the length of a nonblank character string, excluding trailing blanks, and returns 0 for a blank character string
LOWCASEconverts all letters in an argument to lowercase
CALL MISSINGassigns a missing value to the specified character or numeric variable
NLITERALconverts a character string that you specify to a SAS name literal (N-literal)
NOTALNUMsearches a character string for a nonalphanumeric character and returns the first position at which it is found
NOTALPHAsearches a character string for a nonalphabetic character and returns the first position at which it is found
NOTCNTRLsearches a character string for a character that is not a control character and returns the first position at which it is found
NOTDIGITsearches a character string for any character that is not a digit and returns the first position at which that character is found
NOTFIRSTsearches a character string for an invalid first character in a SAS variable name under VALIDVARNAME=V7, and returns the first position at which that character is found
NOTGRAPHsearches a character string for a nongraphical character and returns the first position at which it is found
NOTLOWERsearches a character string for a character that is not a lowercase letter and returns the first position at which that character is found
NOTNAMEsearches a character string for an invalid character in a SAS variable name under VALIDVARNAME=V7, and returns the first position at which that character is found
NOTPRINTsearches a character string for a nonprintable character and returns the first position at which it is found
NOTPUNCTsearches a character string for a character that is not a punctuation character and returns the first position at which it is found
NOTSPACEsearches a character string for a character that is not 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
NOTUPPERsearches a character string for a character that is not an uppercase letter and returns the first position at which that character is found
NOTXDIGITsearches a character string for a character that is not a hexadecimal digit and returns the first position at which that character is found
NVALIDchecks a character string for validity for use as a SAS variable name in a SAS statement
PROPCASEconverts all words in an argument to proper case
PUTCapplies a character format at run time
PUTNapplies a numeric format at run time
REPEATrepeats a character expression
REVERSEreverses a character expression
RIGHTright aligns a character expression
SCANselects a given word from a character expression
CALL SCANreturns the position and length of a given word from a character expression
ROUNDEXencodes a string to facilitate searching
SPEDISdetermines the likelihood of two words matching, expressed as the asymmetric spelling distance between the two words
STRIPreturns a character string with all leading and trailing blanks removed
SUBPADreturns a substring that has a length you specify, using blank padding if necessary
SUBSTRNreturns a substring, allowing a result with a length of zero
SUBSTRextracts substrings of character expressions
TRANSLATEreplaces specific characters in a character expression
TRANWRDreplaces or removes all occurrences of a word in a character string
TRIMremoves trailing blanks from character expressions and returns one blank if the expression is missing
TRIMNremoves trailing blanks from character expressions and returns a null string (zero blanks) if the expression is missing
UPCASEconverts all letters in an argument to uppercase
UUIDGENreturns the short or binary form of a Universal Unique Identifier (UUID)
VERIFYreturns the position of the first character that is unique to an expression

Previous Page | Next Page | Top of Page