cobol2.hlp (Table of Contents; Topic list)
HOST-NUMCOMPARE Details (↑ Choosing Run-time Behavior)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     If the ZWB directive is also specified, HOST-NUMCOMPARE only affects
     comparisons involving unsigned numeric data items. If NOZWB is
     specified, HOST-NUMCOMPARE will affect comparisons involving both
     signed and unsigned data items.
 
     If HOST-NUMCOMPARE is specified, affected comparisons are treated as
     if the numeric data item were redefined as an alphanumeric item of the
     same length, and the comparison made against this redefinition. If
     NOHOST-NUMCOMPARE is specified, the numeric field is first moved to an
     elementary alphanumeric data item of the same size, and the content of
     this alphanumeric item is then compared to the literal.
 
     The HOST-NUMCOMPARE directive only affects comparisons where the
     numeric data item contains non-numeric data at the time of the
     comparison.
 
     See also ZWB
                                    -♦-