REFFLD (Referenced Field) Keyword for Physical Files Only--Example

Figure 67 shows how to code the REFFLD keyword.

Figure 67. Specifying the REFFLD Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R FMAT1
00020A            ITEM           5
00030A            ITEM1     R               REFFLD(ITEM)
00040A            ITEM2     R               REFFLD(FMAT1/ITEM)
00050A            ITEM3     R               REFFLD(ITEM FILEX)
00060A            ITEM4     R               REFFLD(ITEM LIBY/FILEX)
00070A            ITEM5     R               REFFLD(FMAT1/ITEM LIBY/FILEX)
00080A            ITEM6     R               REFFLD(ITEM *SCR)
     A

The default for lines 00030 and 00040 is to search the DDS source file where they are specified because the REF keyword is not specified. In line 00080, the parameter *SRC explicitly specifies this source file. See Appendix A, When to Specify REF and REFFLD Keywords for DDS Files, for explanations of the various specifications.