| SAS Functions and CALL Routines under Windows |
| Category: | Character |
| Windows specifics: | Uses the ASCII sequence |
| See: | RANK Function in SAS Language Reference: Dictionary |
| Syntax | |
| Details |
Syntax |
| RANK(x) |
is a character expression that contains a character in the ASCII collating sequence. If the length of x is greater than 1, you receive the rank of the first character in the expression.
| Details |
Because Windows uses the ASCII character set, the RANK function returns an integer that represents the position of a character in the ASCII collating sequence.
Note: Any program that uses the
RANK function with characters above ASCII 127 (the hexadecimal notation is
'7F'x
) is not portable because these characters are national characters
and they vary from country to country. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.