Q: What happens if a job ends during a Reorganize Physical File Member (RGZPFM)? Is the file corrupted, or does the system recover?
A: The RGZPFM sequence occurs as follows:
1. Create a new data space. 2. Copy nondeleted records from old data space using the specified access path. 3. Change member header to point to new data space. 4. Mark old data space addresses as available. 5. Rebuild all indexes over member.
If the job ends prior to step 3, you may need to use the Reclaim Storage (RCLSTG) command to take care of a disconnected data space. Step 3 is probably not interruptible and may have fail-safes anyway. If the job ends before step 4 completes, you need to clean up with RCLSTG again. Each keyed access path will be rebuilt the first time it's used. Rebuilding of keyed access paths also happens if the job ends at step 5.
The short answer is: the file's okay, regardless.