Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


ORD

The ORD function returns an integer value that is the ordinal position of its argument in the collating sequence for the program. The lowest ordinal position is 1.

The function type is integer.

The function result is a three-digit integer.

Format
Read syntax diagramSkip visual syntax diagram>>-FUNCTION ORD--(--argument-1--)------------------------------><
 
argument-1
Must be one character in length and must be class alphabetic or alphanumeric.

The returned value is the ordinal position of argument-1 in the collating sequence for the program; it ranges from 1 to 256 depending on the collating sequence.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)