Adding an RPC

To define a new RPC to TRS for each new Open ServerConnect transaction and map it to a region:

exec sgw_addrpc rpc_name, tran_id, region,
 security

where:

NoteSNA network products vary in that some do not allow only the user ID to be forwarded; in other words, the ALREADY VERIFIED bit may not be set. Check your platform-specific DirectConnect and vendor SNA documentation for restrictions.

Example

To add an RPC named “SYD2”:

exec sgw_addrpc SYD2, SYD2, TESTREG, none
go

This maps SYD2 to the mainframe transaction named “SYD2,” which executes in the mainframe region named “TESTREG.” A user ID or password is not passed through to the mainframe when the RPC is invoked.