Implicit connections to RRSAF
Resource Recovery Services attachment facility (RRSAF) establishes an implicit connection to Db2 under certain situations. The connection is established if the following are true: the RRSAF language interface load module (DSNRLI) is available, you do not explicitly specify the IDENTIFY function in a CALL DSNRLI statement in your program, and the application includes SQL statements or IFI calls.
An implicit connection causes RRSAF to initiate implicit IDENTIFY and CREATE THREAD requests to Db2. These requests are subject to the same Db2 return codes and reason codes as explicitly specified requests.
- Subsystem name
- The default name that is specified in the module DSNHDECP. RRSAF
uses the installation default DSNHDECP, unless your own DSNHDECP module
is in a library in a STEPLIB statement of the JOBLIB concatenation
or in the link list. In a data sharing group, the default subsystem
name is the group attachment name.
Be certain that you know what the default name is and that it names the specific Db2 subsystem that you want to use.
- Plan name
- The member name of the database request module (DBRM) that Db2 produced when you precompiled the source program that contains the first SQL call.
- Authorization ID
- The 7-byte user ID that is associated with the address space, unless an authorized function has built an Accessor Environment Element (ACEE) for the address space. If an authorized function has built an ACEE, Db2 passes the 8-byte user ID from the ACEE.
For an implicit connection request, your application should not explicitly specify either the IDENTIFY function or the CREATE THREAD function. Your application can execute other explicit RRSAF calls after the implicit connection is made. An implicit connection does not perform any SIGNON processing. Your application can execute the SIGNON function at any point of consistency. To terminate an implicit connection, you must use the proper function calls.
For implicit connection requests, register 15 contains the return code, and register 0 contains the reason code. The return code and reason code are also in the message text for SQLCODE -981.