COBOL Manual for TNS and TNS/R Programs

Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs522555-006
14-45
ORD-MIN Function
ORD-MIN Function
ORD-MIN, an integer function, returns the ordinal number of its minimum argument.
argument
is an alphabetic, alphanumeric, integer, or numeric argument. If you specify more
than one argument, they must all be of the same class. Integer and numeric
arguments can be mixed, because integers are of the class numeric.
argument can be an array; for example,
FUNCTION ORD-MIN (ARRAY1(ALL))
returns the ordinal number of the smallest element of the array ARRAY1.
The returned value is the ordinal number of the argument with the least value
(according to the rules for evaluating simple conditions). If more than one argument
has the same least value, the returned value is the ordinal number of the leftmost
argument with that value. The returned value is at least one.
( )
ORD-MINFUNCTION argument
VST454.vsd