Figure 55 and Figure 56 show how to specify the JFILE keyword.
Figure 55. Specifying the JFILE Keyword (Example 1)
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R JREC JFILE(PF1 PF2)
00020A J JOIN(PF1 PF2)
00030A JFLD(NAME1 NAME2)
A
In the join logical file, PF1 is the primary file and PF2 is the secondary file.
Figure 56. Specifying the JFILE Keyword (Example 2)
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R JREC JFILE(MYLIBA/PHYSICAL1 +
00020A MYLIBB/PHYSICAL2 MYLIBC/PHYSICAL3)
00030A J JOIN(1 2)
00040A JFLD(FIELD1 FIELD2)
00050A J JOIN(1 3)
00060A JFLD(FIELD1 FIELD2)
A
In the join logical file, file PHYSICAL1 in library MYLIBA is the primary file. File PHYSICAL2 in library MYLIBB and file PHYSICAL3 in library MYLIBC are secondary files.