EDTCDE (Edit Code) Keyword for Display Files

Use this field-level keyword to edit output-capable numeric fields.

The format of the keyword is:

EDTCDE(edit-code [* |floating-currency-symbol])

Editing includes the following changes to the appearance of displayed fields, depending on which edit code is specified:

EDTCDE covers most editing requirements. Use EDTWRD when the EDTCDE keyword is not sufficient.

The EDTCDE keyword is valid only for fields with Y or blank in position 35 (Data Type/Keyboard Shift). The use of this keyword changes the default used for position 35 to a Y.

You cannot specify both EDTCDE and EDTWRD for the same field. If a field previously defined in a database file has EDTCDE specified, you need not specify EDTCDE for that field in the display file. You can specify R in position 29 to refer to the previously defined field. The editing specified for the referenced field is included in the display file. However, if you also specify length, data type, or decimal positions for a display file field, editing specified for the referenced field is not included in the display file, and you must specify editing again in the display file.

The DFT and DFTVAL keywords cannot be specified with the EDTCDE keyword.

Option indicators are not valid for this keyword.

The rules for specifying edit codes and edit words are the same in all types of files. You can specify two kinds of edit codes: OS/400 edit codes and user-defined edit codes.