CPI4322 - Access path built from keyed file &1

CPI4322
Message Text: Access path built from keyed file &1.
Cause Text: A temporary access path was built using the access path from member &3 of keyed file &1 in library &2 to access records from member &6 of file &4 in library &5 for reason code &10. This process took &11 minutes and &12 seconds. The access path built contains &15 entries. The reason codes and their meanings follow:
  1. Perform specified ordering/grouping criteria.
  2. Perform specified join criteria.
  3. Perform specified record selection to minimize I/O wait time
The access path was built using the following key fields. The key fields and their corresponding sequence (ASCEND or DESCEND) will be shown:

&17.

A key field of *MAP indicates the key field is an expression (derived field).

The temporary access path was built using sequence table &13 in library &14.

A sequence table of *N indicates the access path was built without a sequence table. A sequence table of *I indicates the table was an internally derived table that is not available to the user.

If file &4 in library &5 is a logical file then the temporary access path is built over member &9 of physical file &7 in library &8. Creating an access path from a keyed file generally results in improved performance.
Recovery Text: If this query is run frequently, you may want to create an access path (index) similar to this definition for performance reasons. Create the access path using sequence table &13 in library &14, unless the sequence table is *N. If an access path is created, it is possible the query optimizer may still choose to create a temporary access path to process the query.

If *MAP is returned for one of the key fields or *I is returned for the sequence table, then a permanent access path cannot be created. A permanent access path cannot be built with these specifications.

A temporary access path can only be created using index only access if all of the fields that were used by this temporary access path are also key fields for the access path from the keyed file.

This message indicates that a temporary index was created from the access path of an existing keyed table or index.

Generally, this action should not take a significant amount of time or resource because only a subset of the data in the table needs to be read. This is normally done to allow the optimizer to use an existing index for selection while creating one for ordering, grouping, or join criteria. Sometimes even faster performance can be achieved by creating a logical file or SQL index that satisfies the index requirement stated in the message help.