SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
Returns the position of a character in the ASCII or EBCDIC collating sequence
Category: Character
See: RANK Function in the documentation for your operating environment.
Syntax
RANK ( x )
Arguments
x
-
specifies a character expression.
Details
The RANK function returns an integer that represents the position of the first character in the character expression. The result depends on your operating environment.
Examples
SAS Statements | Results | |
---|---|---|
ASCII | EBCDIC | |
n=rank('A'); put n; |
65 |
193 |
See Also
Functions:
-
'BYTE Function' on page 334
-
'COLLATE Function' on page 443