Program structure and data flow of PSSR

PSSR runs in a batch environment, either IMS™ batch environment or non IMS batch environment.

Non IMS batch environment

In non IMS batch environment, the following two DFSORT exit routines are used:

  • FABSRT15 is an E15 exit routine that receives control once for each input record before the record is handled by DFSORT. It appends a block number and a root anchor point (RAP) number to each record in the unloaded database data set.
  • FABSRT35 is an E35 exit routine that receives control once for each output record after the record is handled by DFSORT. It removes the block number and RAP number (that were appended by FABSRT15) from each record in the sorted unloaded database data set.

PSSR is executed by adding a DFSORT step between the unload and reload steps in a normal database reorganization job.

The following figure shows the general data flow for PSSR in a non IMS batch environment. In addition to supplying input through the SYSIN and CTL (user's requests) data sets, use also the DBDs to control the operation of FABSRT15 and FABSRT35.

Figure 1. Data flow for PSSR in non IMS batch environment
This figure depicts the data flow for PSSR in non IMS batch environment.

IMS batch environment

In IMS batch environment, the PSSR main module FABSMAIN is specified in the PGM= parameter in the EXEC statement. FABSMAIN invokes the DL/I region controller DFSRRC00 and DFSORT program with PSSR sort exit routines.

The following figure shows the general data flow for PSSR in the IMS batch environment.

Figure 2. Data flow for PSSR in IMS batch environment
This picture depicts the data flow of PSSR in IMS batch environment.