Chapter Contents

Previous

Next
RANK

RANK



Returns the position of a character in the EBCDIC collating sequence

CMS specifics: EBCDIC collating sequence


Syntax
Details
Example
See Also

Syntax

RANK (n)

n
is a character in the EBCDIC collating sequence represented by a specific integer.


Details

Under CMS, the RANK function returns an integer that represents the position of a character in the EBCDIC collating sequence. Some operating environments return the ASCII equivalent.


Example

The following example returns a value of 193 and assigns it to the variable n:

n = rank('A');

See Also


Chapter Contents

Previous

Next

Top of Page

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