The ORD function returns an integer value that is the ordinal position of argument-1 in the program collating sequence. The lowest ordinal position is 1.
FUNCTION ORD ( argument-1 )