CLOSE Service
The CLOSE service requests termination of the requesting task and thread as a user of Db2 services.
The CLOSE service requests termination of the requesting task and thread as a user of Db2 services.
>>---CLOSE-----+----------------------+---+-------------+--------->< | | | | +--THREAD(:hv_handle)--+ +---*SYNC-----+ +----ABRT-----+ +--:hv_close--+
When successful, the CLOSE service terminates the plan thread with which your application communicated with Db2.
If no thread handle is specified,
RLX
/CAF assumes the current thread. If you request CLOSE with the ABRT option, then Db2 will ROLLBACK any pending database changes before terminating the thread. Otherwise, SYNC (the default) requests that pending database changes for this thread be COMMITed. For example:'CAF CLOSE, THREAD(:THREAD)'
Where
THREAD
is a REXX variable which contains the thread handle that is returned by a successful CREATE THREAD
or ACTIVATE
request.