Previous Topic: Remote Procedure Call (RPC) Transaction

Next Topic: CONNECT Transaction-Connect to an Active Process

ATTACH Transaction-Allocate a Procedure

The APPC in your product incorporates the system ATTACH transaction that allows any NCL procedure to be attached and establishes the usual APPC conversation connection. For example:

&APPC ATTACH PROC=proc DOMAIN=test

This form of allocation proceeds as a special internal transaction. It sets up the conversation with the nominated procedure without the requirement to set up a Transaction Control Table entry for the procedure. The system TCT entry for the ATTACH transaction is used to complete the conversation setup options, including the transaction security requirements.

Note: This form of allocation can be useful between systems where the procedure name is obtained indirectly, but should not be thought of as a general replacement for the use of the Transaction Control Table.

Once started, the conversation is available in the attached procedure, exactly as it would had a standard allocation request been issued. The conversation is operated by both partners in the usual manner.