DISCONNECT Service

The DISCONNECT service removes the connection between your application's address space and a Db2 subsystem.
The DISCONNECT service removes the connection between your application address space and a Db2 subsystem. DISCONNECT is the inverse operation of CONNECT.
>>---DISCONNECT----+----------------------+-------->< | | +--THREAD(:hv_handle)--+
The following statement disconnects the Db2 subsystem from the application thread specified by
:hv_handle
. If you omit
:hv_handle
on the call,
RLX
/CAF assumes the current thread.
'CAF DISCONNECT THREAD(:THREAD1)
Where
THREAD1
is a REXX variable which contains the thread handle returned by a successful
CREATE THREAD
or
ACTIVATE
call.