The combination edit codes (1 through 4, A through D, J through Q) punctuate a numeric field.
All of the edit codes suppress leading zeros to the left of the decimal notation except when J is specified in position 21 (decimal notation) of the control specification The decimal position of the source field determines whether and where a decimal point is printed. If decimal positions are specified for the source field and the zero balance is to be suppressed, the decimal notation prints only if the field is not zero. If a zero balance is not to be printed, a zero field prints as blanks.
When a zero balance is to be printed and the field is equal to zero, either of the following is printed:
You can use a floating currency symbol or asterisk protection with any of the 12 combination edit codes. To specify a floating currency symbol, code the currency symbol in positions 45 through 47 of the output specifications, along with an edit code in position 38 for the field to be edited. The floating currency symbol appears to the left of the first significant digit. The floating currency symbol does not print on a zero balance when an edit code is used that suppresses the zero balance. (A dollar sign ($) is used as the currency symbol unless a currency symbol is specified in position 18 of the control specification.)
An asterisk constant coded in positions 45 through 47 of the output specifications ('*'), along with an edit code for the field to be edited causes an asterisk to be printed for each zero suppressed. A complete field of asterisks is printed on a zero balance source field.
Asterisk fill and the floating currency symbol cannot be used with the simple (X, Y, Z) or with the user-defined (5 through 9) edit codes.
A currency symbol can appear before the asterisk fill (fixed currency symbol). This requires the following coding:
When an edit code is used to print an entire array, two blanks precede each element of the array (except the first element).
One of the decimal notation formats for output is a J entry in position 21 of the control specification. If you specify J, the use of commas and periods is reversed; that is, a period is used as the grouping separator character and a comma is used as the decimal notation. The zero-suppression character is in the second position (rather than the first) to the left of the decimal notation. This writes all zero balances and balances with zero values to the left of the comma with one leading zero (0,00 or 0,04). The J entry also overrides any edit codes that might suppress the leading zero. Remember that the decimal positions of the source field determine whether and where a decimal notation is printed.
Another decimal notation format is an I in position 21 of the control specification. If you specify I, a period is used as the grouping separator character and a comma is used as the decimal notation.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.