RANK Function


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

Category: Character

See: RANK Function in the documentation for your operating environment.

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 Function' on page 334

  • 'COLLATE Function' on page 443




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net