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


BLANK WHEN ZERO clause

The BLANK WHEN ZERO clause specifies that an item contains only spaces when its value is zero.

Read syntax diagramSkip visual syntax diagram
Format

>>-BLANK--+------+--+-ZERO---+---------------------------------><
          '-WHEN-'  +-ZEROS--+   
                    '-ZEROES-'   

The BLANK WHEN ZERO clause may be specified only for an elementary item described by its picture character string as category numeric-edited or numeric, without the picture symbol S or *. These items must be described, either implicitly or explicitly, as USAGE DISPLAY or USAGE NATIONAL.

A BLANK WHEN ZERO clause that is specified for an item defined as numeric by it picture character string defines the item as category numeric-edited.

The BLANK WHEN ZERO clause must not be specified for date fields.


Terms of use | Feedback

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