ZWB

ZWB determines whether the compiler removes the sign from signed zoned decimal fields before they are compared to alphanumeric fields at run time.

Syntax

Read syntax diagramSkip visual syntax diagramZWB=*YESNO
Default
ZWB=YES
YES
Removes the sign from a signed external decimal (DISPLAY) field when comparing this field to an alphanumeric field at run time.
NO
Does not remove the sign from a signed external decimal (DISPLAY) field when comparing this field to an alphanumeric field at run time.
Note:
  • Setting this option affects program runtime logic; that is, the same COBOL source program can give different results, depending on the option setting. Verify whether your Enterprise COBOL source programs assume a particular setting to run correctly.
  • Application programmers use ZWB=NO to test input numeric fields for SPACES.