Figure 156 shows how to specify the EDTCDE keyword.
Figure 156. Specifying the EDTCDE Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A PRICE 5 2 1 10EDTCDE(J) 00020A SALES 7 2 2 10EDTCDE(K $) 00030A SALARY 8 2 3 10EDTCDE(1 *) A
The display length for PRICE is 7 because the J edit code is specified, causing the field to contain a decimal point and an ending minus sign. It is edited as:
ddd.dd-
where d represents a digit.
The display length for SALES is 11 because the K edit code and floating currency symbol are specified. It is edited as:
$dd,ddd.dd-
The display length for SALARY is 10 because the edit code 1 is specified with asterisk fill. It is edited as:
ddd,ddd.dd
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.