In fixed insertion editing, only one currency symbol and one editing-sign control symbol can be specified in one PICTURE character-string.
The currency symbol represents the position at which a currency sign is to appear. A currency sign may be the currency symbol itself, or a currency-string one or more characters in length that is specified in the CURRENCY SIGN clause of the SPECIAL-NAMES paragraph. The size of the edited item will be increased by the number of characters contained in the corresponding currency-string.
Unless it is preceded by a + or - symbol, the currency symbol must be the first character in the character-string.
When either + or - is used as a symbol, it must be the first or last character in the character-string.
When CR or DB is used as a symbol, it must occupy the rightmost two character positions in the character-string. If these two character positions contain the symbols CR or DB, the uppercase letters are the insertion characters.
Editing Symbol Result: Result:
in PICTURE Data Item Data Item
Character-String Positive or Zero Negative
+ + -
- space -
CR 2 spaces CR
DB 2 spaces DB
PICTURE Value of Data Edited Result
999.99+ +6555.556 555.55+
+9999.99 -6555.555 -6555.55
9999.99 +1234.56 1234.56
$999.99 -123.45 $123.45
U999.99 -123.45 EUR123.45 1
-$999.99 -123.456 -$123.45
-u999.99 -123.456 -USD123.45 2
-$999.99 +123.456 $123.45
$9999.99CR +123.45 $0123.45
$9999.99DB -123.45 $0123.45DB