The shutdown assist transaction

On an immediate shutdown, CICS® does not allow running tasks to finish. A backout is not performed until an emergency restart.

This can cause an unacceptable number of units of work to be shunted, with locks being retained. On the other hand, on a normal shutdown, CICS waits indefinitely for running transactions to finish, which can delay shutdown to a degree that is unacceptable. The CICS shutdown assist transaction improves both these forms of shutdown and, to a large degree, removes the need for an immediate shutdown.

The operation of CESD, for both normal and immediate shutdowns, takes place over a number of stages. CESD controls these stages by sampling the number of tasks present in the system, and proceeds to the next stage if the number of in-flight tasks is not reducing quickly enough.

The stages of a normal shutdown CESD are as follows:
  • In the initial stage of assisted shutdown, CESD attempts to complete a normal shutdown in a reasonable time.
  • After a time allowed for transactions to finish normally (that is, after the number of tasks has not reduced over a period of eight samples), CESD proceeds to issue a normal purge for each remaining task. The transaction dump data set is closed in this stage.
  • If there are still transactions running after a further eight samples (except when persistent sessions support is being used), the z/Os Communications Server is force-closed and IRC is closed immediately.
  • Finally, if there are still transactions running, CICS shuts down abnormally, leaving details of the remaining in-flight transactions on the system log to be dealt with during an emergency restart.

The operation of CESD is quicker for an immediate shutdown, with the number of tasks in the system being sampled only four times instead of eight.

You are recommended always to use the CESD shutdown-assist transaction when shutting down your CICS regions. You can use the DFHCESD program "as is", or use the supplied source code as the basis for your own customized version (CICS supplies versions in assembler, COBOL, and PL/I).



dfht25w.html | Timestamp icon Last updated: Sunday, 4 June 2017