Commitment control during abnormal system or job end

 

The system ends all commitment definitions for a job when the job ends abnormally. These commitment definitions are ended during the job end processing. This topic applies only to commitment definitions with job-scoped locks.

If the system ends abnormally, the system ends all commitment definitions that were started and being used by all active jobs at the time of the abnormal system end. These commitment definitions are ended as part of the database recovery processing that is performed during the next IPL after the abnormal system end. Attention: The recovery for commitment definitions refers to an abnormal end for the system or a job due to a power failure, a hardware failure, or a failure in the operating system or licensed internal code. You must not use the End Job Abnormal (ENDJOBABN) command to force a job to end abnormally. The abnormal end can result in pending changes for active transactions for the job you are ending to be partially committed or rolled back. The next IPL might attempt recovery for any partial transactions for the job ended with the ENDJOBABN command.

The outcome of commitment control recovery that the system performs during an IPL for a job that you end with the ENDJOBABN command is uncertain. It is because all locks for commitment resources are released when the job is ended abnormally. Any pending changes due to partial transactions are made available to other jobs. These pending changes can then cause other application programs to make additional erroneous changes to the database. Likewise, any ensuing IPL recovery that is performed later can adversely affect the changes made by applications after the job was ended abnormally. For example, an SQL table might be dropped during IPL recovery as the rollback action for a pending create table. However, other applications might have already inserted several rows into the table after the job was ended abnormally.

The system performs as follows for commitment definitions being ended during an abnormal job end or during the next IPL after an abnormal system end:

If a process ends before commitment control is ended and protected conversations are still active, the commitment definition might be required to commit or roll back. The action is based on the State option and the Action if end job option for the commitment definition.

 

Parent topic:

System-initiated end of commitment control

 

Related concepts


Implicit commit and rollback operations
Updates to the notify object