The CICS® DB2® attachment facility, and hence the CICS-DB2 connection, can be quiesce stopped or force stopped. A quiesce stop waits for all CICS transactions currently using DB2 to complete. A force stop causes all CICS transactions currently using DB2 to be forcepurged.
During startup of the CICS DB2 attachment facility, the CICS DB2 task-related user exit (TRUE) is enabled with the SHUTDOWN option. This means that CICS automatically invokes the TRUE when CICS is shut down, so as to shut down the CICS DB2 connection. When invoked during a quiesce shutdown of CICS, the CICS DB2 TRUE initiates a quiesce stop of the attachment facility. Likewise an immediate shutdown of CICS causes a force shutdown of the attachment facility to be initiated by the TRUE. If CICS is cancelled, no shutdown of the attachment facility is initiated by the TRUE.
The connection between CICS and DB2 can be stopped or disconnected by using any one of the following methods:
For information on the DSNC STOP command see DSNC STOP.
The CDBQ transaction runs program DFHD2CM2. The transaction can be run directly from the terminal or by using the EXEC CICS START command. No messages are output to the terminal. The CICS DB2 adapter however outputs messages to transient data as part of its shutdown procedure.
The CDBF transaction runs program DFHD2CM3. The transaction can be run directly from the terminal or EXEC CICS STARTed. No messages are output to the terminal. The CICS DB2 adapter, however, outputs messages to transient data as part of its shutdown procedure.