Here are the principle requirements for join logical
files.
- Each join logical file must have:
- Only one record format, with the JFILE keyword specified for it.
- At least two physical file names specified on the JFILE keyword. (The
physical file names on the JFILE keyword do not have to be different files.)
- At least one join specification (J in position 17 with the JFLD keyword
specified).
- A maximum of 255 secondary files.
- At least one field name with field use other than N (neither) at the field
level.
- If only two physical files are specified for the JFILE keyword, the JOIN
keyword is not required. Only one join specification can be included, and
it joins the two physical files.
- If more than two physical files are specified for the JFILE keyword, the
following rules apply: