The values you provide for defining the default SQL language handler to TRS depend on:
The environment on the mainframe (CICS, IMS, or MVS)
The status of TRS security (enforced or not enforced)
To define a default SQL language handler for your site configuration, use sgw_addrpc:
sgw_addrpc rpc_name, tran_id, region, security
Refer to Table 3-6 for the appropriate rpc_name and tran_id parameters, then set region and security to the appropriate values for your site:
TRS |
CICS host (Mainframe Connect) |
MVS host and IMS host (Mainframe Connect DB2 UDB Option) |
---|---|---|
TRS Security Enforced |
|
|
TRS Security Not Enforced |
|
|
If security is enforced, define the rpc_name that
you create as the default SQL language handler when defining the tran_group.
When security is not enforced, the default
SQL language rpc_name must be SYRT.
This is an isql example of the sgw_addrpc procedure, which defines a default SQL language handler:
exec sgw_addrpc SYRT, AMD2, TESTREG, both
go
where:
Language requests are routed to the Mainframe Connect DB2 UDB Option, which has a predefined CICS tran_id of AMD2.
TESTREG is the region parameter value that corresponds to the LU 6.2 or TCP/IP connection that provides access to the CICS region running the Mainframe Connect DB2 UDB Option.
If TRS security were enforced for this example, the TRS system administrator would need to define a transaction group (using sgw_addtrngrp) with SYRT as the default language RPC. SYRT then would become the default SQL language handler for all TRS users assigned to that transaction group.