ACTIVATE Service
The ACTIVATE service combines the functions of CREATE THREAD, CONNECT, and OPEN
RLX
/CAF services.The ACTIVATE service is a composite operation which combines in a single service the functions of three
RLX
/CAF services: CREATE THREAD, CONNECT, and OPEN. ACTIVATE may be used in cases where the more granular thread management facilities provided by the RLX
/CAF CREATE THREAD, CONNECT, and OPEN services are not required.>>---ACTIVATE THREAD(:hv_thread)--------------+---------------------+-------------> | | +-SYSTEM(+---dsn---+)-+ | | +-:hv_dsn-+ >--+--------------------+---+---------------------+---+----------------------+--->< | | | | | | +-PLAN(+---plan---+)-+ +-RLXPGM(+---PGM---+)-+ +-LOAD(+ --ddname---+)-+ | | | | | | +-:hv_plan-+ +-:hv_pgm-+ +-:hv_ddname-+
ACTIVATE receives the same parameters as the CREATE service and also returns an application thread handle. See the CREATE, CONNECT, and OPEN services for additional usage details.
'CAF ACTIVATE THREAD(:thread1) SYSTEM(DSN) PLAN(RLXPLANC) PGM(RLXSQL)'
Where
- THREAD1Identifies a REXX variable into which ACTIVATE returns a thread handle if the call is successful.
- SYSTEMIdentifies the name of the Db2 subsystem to which this thread should connect.
- PLANSpecifies the name of the Db2 application plan to be associated with this thread.
- PGMSpecifies the name of theRLXSQL load module associated with the Db2 application plan specified by PLAN.