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.