REFFLD (Referenced Field) Keyword in Printer Files

Use this field-level keyword when referring to a field under one of these three conditions:

The format of the keyword is:

REFFLD([record-format-name/]referenced-field-name
[*SRC | [library-name/]data-base-file-name])

The referenced-field-name is required even if it is the same as the referencing field. Use the record-format-name when the referenced file contains more than one record format. Use *SRC (rather than the database-file-name) when the referenced field name is in the same DDS source file as the referencing field. *SRC is the default value when the database-file-name and the library-name are not specified.

Note:
When you refer to a field in the same DDS source file, the field being referred to must precede the field being defined.

Specify the database-file-name (qualified by its library-name, if necessary) when you want to search a particular database file.

If, in the same DDS source file, you specify REF at the file level and REFFLD at the field level, the particular search sequence depends on both the REF and REFFLD keywords. For more information, see Appendix A, When to Specify REF and REFFLD Keywords for DDS Files.

You must specify an R in position 29. In some cases, some keywords specified with the field in the database file are not included in the printer file. For more information see, DDS Reference (Position 29) in this chapter.

You can specify a Distributed Data Management (DDM) file on this keyword.

When using a DDM file, the data-base-file-name and library-name are the DDM file and library names on the source system. The referenced-field-name and the record-format-name are the field name and the record format name in the remote file on the target system.

Note:
IDDU files cannot be used as reference files.

Option indicators are not valid for this keyword.