Partition selection when processing is restricted to a range of partitions

A partition is selected by using the root key for the DL/I call and the high key that is defined for the partition.

When access is restricted to a range of consecutive partitions and the root key is outside the key range of any of the partitions, status code FM or GE is returned.

If you use a partition selection exit routine, the routine is called when the DL/I call provides a specific root key. The exit routine selects a partition based on the root key given. If the partition selected is not one that the application has access to, status code FM or GE is returned. The exit routine is not called to select a first partition or next partition.

When access is restricted to a range of partitions, the first partition is always the partition named in the DFSHALDB statement and the next partition selected depends on the partition selection order as defined by either the partition high keys or the partition selection exit routine.

Recommendation: When you are restricting processing to a range of partitions, the SSA should include only the root keys that are in the key ranges of the partitions.