To disconnect a particular CICS® transaction
from Db2,
you must abnormally terminate the transaction.
Procedure
To
disconnect a CICS application
from Db2,
use one of the following methods:
- The Db2 command
CANCEL THREAD can be used to cancel a particular thread. CANCEL THREAD
requires that you know the token for any thread that you want
to cancel.
Enter the following command to cancel the thread
that is identified by the token as indicated in the display output.
-CANCEL THREAD(46)
When you issue the CANCEL
THREAD command for a thread, that thread is scheduled to be terminated
in Db2.
- The command DSNC DISCONNECT terminates the threads allocated
to a plan ID, but it does not prevent new threads from being created.
This command frees Db2 resources
that are shared by the CICS transactions
and allows exclusive access to them for special-purpose processes
such as utilities or data definition statements.
The
thread is not canceled until the application releases it for reuse,
either at SYNCPOINT or end-of-task.