Joined: 06 Jun 2008 Posts: 8546 Location: Dubuque, Iowa, USA
Have you read the Enterprise COBOL Language Reference manual on numeric comparisons? If not, why not -- it has almost all the answers you could possibly want on how COBOL works on the mainframe. If you did read that, did you not see this on page 272 of the version 6.1 COBOL manual (emphasis added by me):
A numeric comparison is a comparison of the algebraic value of two operands of
When the algebraic values of numeric operands are compared:
v The length (number of digits) of the operands is not significant.
v The usage of the operands is not significant.
v Unsigned numeric operands are considered positive.
v All zero values compare equal; the presence or absence of a sign does not affect
The behavior of numeric comparisons depends on the settings of the NUMPROC
and ZONEDATA compiler options. For details,