Previous Page | Next Page

Functions and CALL Routines

RANK Function



Returns the position of a character in the ASCII or EBCDIC collating sequence.
Category: Character
Restriction: I18N Level 0
See: RANK Function under Windows UNIX OpenVMS

Syntax
Arguments
Details
Examples
See Also

Syntax

RANK(x)

Arguments

x

specifies a character constant, variable, or 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 Function

COLLATE Function

Previous Page | Next Page | Top of Page