RANK Function: Windows

Returns the position of a character in the ASCII collating sequence.

Category: Character
Windows specifics: Uses the ASCII sequence
See: RANK Function in SAS Functions and CALL Routines: Reference

Syntax

RANK(x)

Required Argument

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.