Application group environments: The MXCHKAPMNT step program is included in the default PRECHECK, SWTPLAN, SWTUNPLAN, PRECHKVRT, and SWTVRT procedures. This step attempts to correct any access path maintenance errors for the data groups that belong to the application group being switched.
The error action specified for the MXCHKAPMNT step within each procedure determines the behavior if any access path maintenance errors still exist after the step completes.
-
In the PRECHECK and PRECHKVRT procedures, the shipped default behavior allows the procedure to continue to run. If the PRECHECK procedure completes, it will be “with errors”.
-
However, in the SWTPLAN, SWTUNPLAN, and SWTVRT procedures, if any access path maintenance errors still exist, the shipped default behavior would cause the MXCHKAPMNT step and these procedures to fail.
If the MXCHKAPMNT successfully completes and the data groups are switched, file entries on the new source system will have an access path maintenance status of *AVAILABLE.
Data group-only environments: The Conditions that end switch (ENDSWT parameter on the Switch Data Group (SWTDG) command supports the value *APMNT, which checks for and attempts to correct any access path maintenance errors. When the ENDSWT value specifies *APMNT (or a value which includes *APMNT) and any errors cannot be corrected, the switch request will fail.
If the switch request completes, file entries on the new source system will have an access path maintenance status of *AVAILABLE.