The examples in this topic show how to reorganize physical files with the Reorganize Physical File Member (RGZPFM) command.
RGZPFM FILE(DSTPRODLB/ORDHDRP) KEYFILE(DSTPRODLB/ORDFILL ORDFILL)
The physical file ORDHDRP has an arrival sequence access path. It was reorganized using the access path in the logical file ORDFILL. Assume the key field is the Order field. The following example shows how the records were arranged.
This table shows the original ORDHDRP file. Note that record 3 was deleted before the RGZPFM command was run.
|
This table shows the ORDHDRP file reorganized using the Order field as the key field in ascending sequence.
|