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.
RANK ( x )
x
specifies a character expression.
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.
SAS Statements | Results | |
---|---|---|
ASCII | EBCDIC | |
n=rank('A'); put n; | 65 | 193 |
Functions:
'BYTE Function' on page 334
'COLLATE Function' on page 443