Fixed Insertion Editing
Fixed Insertion Editing
- Fixed insertion editing inserts fixed characters into a numeric edited item.
- The fixed characters are - minus (-), plus (+), credit (CR), Debit (DB), and dollar ($).
- The fixed characters are placed in predefined positions declared within a numeric item.
Notes -
- It is applicable only for numeric items.
- These symbols are counted as the length of the item.
Symbols -
Fixed insertion editing symbols are -
- + : Plus sign is used to highlight the sign of the value. Displays a minus if the value is negative. Displays a plus sign if the value is positive. It should be the first or last character in the PICTURE string.
- - : Minus sign to highlight negative values only. Displays a minus sign if the value is negative. Displays space if the value is positive. It should be the first or last character in the PICTURE string.
- $ : Inserts dollar sign. It should be the leftmost character.
- CR : Displays "CR" if the entire number is negative; otherwise, it displays spaces. It should be defined as the rightmost two-character position.
- DB : Displays "DB" if the entire number is negative; otherwise, it displays spaces. It should be defined as the rightmost two-character position.
Examples -
Editing PICTURE | Input | Output |
---|---|---|
S9(5) | -247 | 0024P |
-9(5) | -247 | -00247 |
+9(5) | -247 | -00247 |
9(5)- | -247 | 00247- |
9(5)+ | -247 | 00247- |
-9(5) | +1047 | B01047 |
9(5)CR | +1047 | 01047BB |
9(5)CR | +1047 | 01147CR |
9(5)DB | -1147 | 01047BB |
9(5)DB | -1147 | 01147DB |
$9(5) | 1547 | $01547 |
$ZZZZZ | ZEROES | BBBBBB |
$ZZZZ9 | ZEROES | $BBBB9 |
Note! B represents space in the above table.