RANK Function: UNIX

Returns the position of a character in the ASCII collating sequence.
Category: Character
UNIX specifics: Uses ASCII collating sequence
See: RANK Function in SAS Functions and CALL Routines: Reference

Syntax

RANK(x)

Required Argument

x
specifies a character constant, variable, or 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 string.

Details

Because UNIX uses the ASCII character set, the RANK function returns an integer that represents the position of a character in the ASCII collating sequence.