EDTCDE (Edit Code) and EDTWRD (Edit Word) Keywords for Physical and Logical Files

Use these field-level keywords to specify editing for the field you are defining when the field is referenced later during display or printer file creation. The EDTCDE and EDTWRD keywords do not affect the physical or logical file.

The format of the EDTCDE keyword is:

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

The format of the EDTWRD keyword is:

EDTWRD('edit-word')

When defining an input-capable field in a display file, refer to the field you are now defining by specifying the letter R in position 29 and the REF or REFFLD keyword. At display file creation, the OS/400 program copies the EDTCDE or EDTWRD keyword and other field attributes from the field in the physical or logical file into the field in the display file. You can override the EDTCDE or EDTWRD keyword by specifying new editing keywords in the display or printer file. Specifying the DLTEDT keyword in the display or printer file deletes all editing for the field. See DDS Reference (Position 29) for details.

You cannot specify the EDTCDE or EDTWRD keyword on a floating-point field (F in position 35) or a hexadecimal field (H in position 35). Do not specify the EDTCDE or EDTWRD keywords on a date, time, or timestamp field (L, T, or Z in position 35).

The rules for specifying these keywords in a physical or logical file are the same as for a display file. For more information on specifying these keywords, see EDTCDE (Edit Code) Keyword for Display Files or EDTWRD (Edit Word) Keyword Display Files.