ORD Function

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

Usage

FUNCTION ORD (argument-1)

Parameter

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

Returned Value

The returned value is the ordinal position of argument-1 in the collating sequence for the program.