Chapter Contents

Previous

Next
RANK

RANK



Returns the position of a character in the ASCII or EBCDIC collating sequence

Category: Character


Syntax
Arguments
Details
Examples
See Also

Syntax

RANK(x)

Arguments

x
specifies a character expression.


Details

The RANK function returns an integer that represents the position of the first character in the character expression. The result depends on your operating environment.


Examples

SAS Statements Results

ASCII EBCDIC
n=rank('A');
put n;
 
65
 
193


See Also

Functions:

BYTE
COLLATE


Chapter Contents

Previous

Next

Top of Page

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