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.
Format >>-FUNCTION ORD--(argument-1)----------------------------------><
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.
Related Information
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.