Chapter Contents

Previous

Next
RANK

RANK



Returns the position of a character in the ASCII collating sequence

Windows specifics: Uses the ASCII sequence


Syntax
Details
See Also

Syntax

RANK(x)

x
is a character in the ASCII collating sequence.


Details

Because Windows is an ASCII system, the RANK function returns an integer that represents the position of a character in the ASCII collating sequence. The x argument must represent 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.

Note:   Any program that uses the RANK function with characters above ASCII 127 (the hexadecimal notation is '7F'x) is not portable because these are national characters and they vary from country to country.  [cautionend]

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.