Step 5 Workfile Hierarchical Sort

The workfile produced by the prefix resolution step (Step 4) contains the logical child records with updated prefixes.
idms
 
The workfile produced by the prefix resolution step (Step 4) contains the logical child records with updated prefixes. The logical child records, though, still remain as sorted by the workfile sort/merge (Step 3). In other words, they are sequenced as they were under their logical parents (even though the logical parents do not appear in the prefix resolution workfile). Before the updated logical child records can be written out to replace the records originally stored in the CA IDMS/DB database (by Step 2), they must be resorted back into the original DL/I hierarchical sequence. The workfile hierarchical sort performs this operation.
To perform the workfile hierarchical sort, you must use your own sort/merge facility.
The workfile hierarchical sort performs the following operations:
  1. Accessing the prefix-resolved workfile from Step 4
  2. Sorting the workfile so that the logical child records are sequenced as in the original DL/I hierarchy
To execute the workfile hierarchical sort step, use the JCL in CA IDMS DLI Transparency JCL. The following diagram show a workfile hierarchical sort
IDMSDB--Operation (5)