REF (Reference) Keyword for Physical Files Only--Examples

Figure 64 and Figure 65 show how to specify the REF keyword.

Figure 64. Specifying the REF Keyword (Example 1)

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      REF(FILE1)
00020A          R RECORD
00030A            FLD1      R
     A

FLD1 has the same attributes as the first (or only) FLD1 in FILE1.

Figure 65. Specifying the REF Keyword (Example 2)

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      REF(LIB1/FILE1 RECORD2)
00020A          R RECORD
00030A            FLD1      R
     A

FLD1 has the same attributes as FLD1 in RECORD2 in FILE1 in LIB1.