Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


ZWB

If you compile with ZWB, the compiler removes the sign from a signed zoned decimal (DISPLAY) field before comparing this field to an alphanumeric elementary field during execution.

Read syntax diagramSkip visual syntax diagram
ZWB option syntax

   .-ZWB---.   
>>-+-------+---------------------------------------------------><
   '-NOZWB-'   

Default is: ZWB

Abbreviations are: None

If the zoned decimal item is a scaled item (that is, it contains the symbol P in its PICTURE string), its use in comparisons is not affected by ZWB. Such items always have their sign removed before the comparison is made to an alphanumeric field.

ZWB affects how a program runs. The same COBOL source program can give different results, depending on this option setting.

Use NOZWB if you want to test input numeric fields for SPACES.


Terms of use | Feedback

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