The access path for a logical file record format can be specified in one of the following ways:
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A R CUSRCD PFILE(CUSMSTP)
A K ARBAL
A K CRDLMT
A
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A R CUSRCD PFILE(CUSMSTP)
| Note: | Even though the specified file's access path specifications are used, the system determines which file's access path, if any, will actually be shared. The system always tries to share access paths, regardless of whether the REFACCPTH keyword is used. |
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
REFACCPTH(DSTPRODLIB/ORDHDRL)
A R CUSRCD PFILE(CUSMSTP)
When you define a record format for a logical file that shares key field specifications of another file's access path (using the DDS keyword, REFACCPTH), you can use any fields from the associated physical file record format. These fields do not have to be used in the file that describes the access path. However, all key and select/omit fields used in the file that describes the access path must be used in the new record format.