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
- The BLANK WHEN ZERO clause may be used only for a numeric or numeric edited elementary item whose picture does not contain
S or "*".
- 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
- The BLANK WHEN ZERO clause causes an item to be filled with spaces when its value is zero.
- Any numeric item described with a BLANK WHEN ZERO clause becomes a numeric edited item.