BLANK WHEN ZERO Clause

The BLANK WHEN ZERO clause causes the data item to be filled with spaces when its value is zero.

General Format

BLANK WHEN ZERO

Syntax Rules

  1. The BLANK WHEN ZERO clause may be used only for a numeric or numeric edited elementary item whose picture does not contain S or "*".
  2. The data item must have USAGE DISPLAY.
    Note: The compiler accepts any sign designation other than S without declaring an error. That includes "+", "-", CR, and DB.

General Rules

  1. The BLANK WHEN ZERO clause causes an item to be filled with spaces when its value is zero.
  2. Any numeric item described with a BLANK WHEN ZERO clause becomes a numeric edited item.