Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


ORD-MIN

The ORD-MIN function returns a value that is the ordinal position in the argument list of the argument that contains the minimum value.

The function type is integer.

Read syntax diagramSkip visual syntax diagram
Format

                        .------------.      
                        V            |      
>>-FUNCTION ORD-MIN--(----argument-1-+--)----------------------><

argument-1
Must be class alphabetic, alphanumeric, national, or numeric.

All arguments must be of the same class, except that a combination of alphabetic and alphanumeric arguments is allowed.

The returned value is the ordinal number that corresponds to the position of the argument-1 having the least value in the argument-1 series.

The comparisons used to determine the least-valued argument-1 are made according to the rules for simple conditions. For more information, see Conditional expressions.

If more than one argument-1 has the same least value, the number returned corresponds to the position of the leftmost argument-1 having that value.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)