CICS DB2 waits
CICS® DB2® uses the WAIT_MVS™ and WAIT_OLDC functions of the CICS dispatcher to put the running CICS task into a wait.
Resource type CDB2CONN
The CICS task has an open TCB but is waiting for a DB2 connection to become available to use with the open TCB. This indicates that the TCBLIMIT value has been reached, which limits the number of open TCBs (and hence connections) that can be used to access DB2. The CICS task must wait for a connection to be freed by another TCB running on behalf of another CICS task, after which it may use the freed DB2 connection with its own TCB.
You cannot purge the task when it is in this state. Message DFHAP0604 is issued at the console if an attempt to forcepurge the task is made. Forcepurge processing is deferred until a DB2 connection has been acquired.
You can increase the number of open TCBs permitted to access DB2 with a SET DB2CONN TCBLIMIT command. If you increase the TCBLIMIT value, CICS posts tasks to retry acquisition of a DB2 connection.
Resource type CDB2RDYQ
The task is waiting for a thread to become available. The resource name details the DB2ENTRY or pool for which there is a shortage of threads.
You cannot purge the task when it is in this state. Message DFHAP0604 is issued at the console if an attempt to forcepurge the task is made. Forcepurge processing is deferred until a thread is acquired.
You can increase the number of threads available for the DB2ENTRY with a SET DB2ENTRY ( ) THREADLIMIT(nn) command. You can increase the number of threads available for the pool with a SET DB2CONN THREADLIMIT(nn) command. If you increase the THREADLIMIT value, CICS posts tasks to retry acquisition of a thread.