This type of editing is valid only for numeric-edited items.
In zero suppression editing, the symbols Z and * are used. These symbols are mutually exclusive in one PICTURE character-string.
The following symbols are mutually exclusive as floating replacement symbols in one PICTURE character-string:
Z * + - cs
Specify zero suppression and replacement editing with a string of one or more of the allowable symbols to represent leftmost character positions in which zero suppression and replacement editing can be performed.
Any simple insertion symbols (B 0 / ,) within or to the immediate right of the string of floating editing symbols are considered part of the string. If the period (.) special insertion symbol is included within the floating editing string, it is considered to be part of the character-string.
In a PICTURE character-string, there are two ways to represent zero suppression, and two ways in which editing is performed:
For example:
| PICTURE | Value of data | Edited result |
|---|---|---|
****.** |
0000.00 |
****.** |
ZZZZ.ZZ |
0000.00 |
|
ZZZZ.99 |
0000.00 |
.00 |
****.99 |
0000.00 |
****.00 |
ZZ99.99 |
0000.00 |
00.00 |
Z,ZZZ.ZZ+ |
+123.456 |
123.45+ |
*,***.**+ |
-123.45 |
**123.45- |
**,***,***.**+ |
+12345678.9 |
12,345,678.90+ |
$Z,ZZZ,ZZZ.ZZCR |
+12345.67 |
$ 12,345.67 |
$B*,***,***.**BBDB |
-12345.67 |
$ ***12,345.67 DB |
Do not specify both the asterisk (*) as a suppression symbol and the BLANK WHEN ZERO clause for the same entry.