The first zero in the body of the edit word is interpreted as an end-zero-suppression character. This zero is placed where zero suppression is to end. Subsequent zeros put into the edit word are treated as constants (see “Constants” below).
Any leading zeros in the source data are suppressed up to and including the position of the end-zero-suppression character. Significant digits that would appear in the end-zero-suppression character position, or to the left of it, are output.
| Edit Word | Source Data | Appears in Edited Result as: |
|---|---|---|
| '␢␢␢0␢␢␢␢␢␢' | 00000004 | ␢␢␢␢000004 |
| '␢␢␢0␢␢␢␢␢␢' | 012345 | ␢␢␢␢012345 |
| '␢␢␢0␢␢␢␢␢␢' | 012345678 | ␢␢12345678 |
If the leading zeros include, or extend to the right of, the end-zero-suppression character position, that position is replaced with a blank. This means that if you wish the same number of leading zeros to appear in the output as exist in the source data, the edit word body must be wider than the source data.
| Edit Word | Source Data | Appears in Edited Result as: |
|---|---|---|
| '0␢␢␢' | 0156 | ␢156 |
| '0␢␢␢␢' | 0156 | ␢0156 |
Constants (including commas and decimal point) that are placed to the right of the end-zero-suppression character are output, even if there is no source data. Constants to the left of the end-zero-suppression character are only output if the source data has significant digits that would be placed to the left of these constants.
| Edit Word | Source Data | Appears in Edited Result as: |
|---|---|---|
| '␢␢␢␢␢␢0.␢␢' | 000000001 | ␢␢␢␢␢␢␢.01 |
| '␢␢␢␢␢␢0.␢␢' | 000000000 | ␢␢␢␢␢␢␢.00 |
| '␢␢␢,␢0␢.␢␢' | 00000012 | ␢␢␢␢␢␢0.12 |
| '␢␢␢,␢0␢.␢␢' | 00000123 | ␢␢␢␢␢␢1.23 |
| '␢0␢,␢␢␢.␢␢' | 00000123 | ␢␢0,001.23 |