BLANK WHEN ZERO Clause

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

Read syntax diagramSkip visual syntax diagram
BLANK WHEN ZERO Clause - Format

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

The BLANK WHEN ZERO clause may be specified only for elementary numeric or numeric-edited items. These items must be described, either implicitly or explicitly, as USAGE IS DISPLAY. When the BLANK WHEN ZERO clause is specified for a numeric item, the item is considered a numeric-edited item.

The BLANK WHEN ZERO clause must not be specified for level-66 or level-88 items.

The BLANK WHEN ZERO clause must not be specified for an entry containing the PICTURE symbols S or *.

The BLANK WHEN ZERO clause is not allowed with:
  • USAGE IS INDEX clause
IBM Extension
IBM Extension
  • Items of class date-time
  • External or internal floating-point items
  • USAGE IS POINTER clause
  • items described with the USAGE IS PROCEDURE-POINTER clause
  • DBCS items
  • National items
  • TYPE clause.
End of IBM Extension
End of IBM Extension