OPEN Service

The OPEN service establishes the requesting task as a Db2 client and allocates the thread resources required for SQL and/or IFI access to Db2.
The OPEN service establishes the requesting task as a Db2 client and allocates the thread resources required for SQL and/or IFI access to Db2.
>>---OPEN------+----------------------+-------->< | | +--THREAD(:hv_handle)--+
The OPEN service is used to signal Db2 to open an application plan. This call follows the CONNECT call for a given thread. When CREATE THREAD is issued without an explicit CONNECT call,
RLX
/CAF issues an implicit CONNECT.
When successful, OPEN creates a Db2 application plan thread. A thread is your application agent in the Db2 address space under which SQL statements, IFI requests and Db2 commands can be executed. The following is an example of a CAF OPEN request:
'CAF OPEN THREAD(:THREAD1)
Where
THREAD1
is a REXX variable which contains the thread handle returned by a successful
CREATE THREAD
call.