CICS-DB2 shutdown program DFHD2STP
Processing in DFHD2STP is as follows:
- If CDB2SHUT is set in the dump table, take a system dump (serviceability aid)
- If a CDB2SHUT dump has not been taken, and the CICS-DB2 master subtask program DFHD2MSB has unexpectedly abended, then a system dump is taken with a dump code of MSBABEND.
- Post CICS-DB2 service task CEX2 to end all subtasks, then terminate itself. Wait for service task to complete.
- If present, post master subtask DFHD2MSB to terminate. Wait for it to terminate, then detach master subtask TCB.
- Call DFHD2CO to disconnect from DB2.
- Call DFHD2CC to write out shutdown statistics.
- If the CICS-DB2 attachment is to go into 'standbymode':
- Re-initialize DFHD2GLB and set the state to 'connecting'.
- Post any tasks who are waiting for shutdown to complete.
- Issues 'Waiting for DB2 attach' message
- If the CICS-DB2 attachment is not to go into 'standbymode':
- Disable the CICS-DB2 TRUE DFHD2EX1.
- MVS delete the program request handler.
- Re-initialize the DFHD2GLB, set the state to 'shut'.
- Issue the shutdown complete message and post any tasks who are waiting for shutdown to complete.