HP 3000 Manuals

ORD [ HP COBOL II/XL Quick Reference Guide ] MPE/iX 5.0 Documentation


HP COBOL II/XL Quick Reference Guide

ORD 

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

Syntax 

     FUNCTION ORD (parameter-1)

Parameters 

parameter-1           Must be one character in length and must be class
                      alphabetic or alphanumeric.



MPE/iX 5.0 Documentation