Connecting the partner transaction
When the front-end transaction has acquired a session, the next step is to initiate the partner transaction.
The state tables show that, in the allocated state (state 1), one of the commands available is GDS CONNECT PROCESS. This command is used to attach the required back-end transaction. It should be noted that the results of the GDS CONNECT PROCESS are placed in the send buffer and are not sent immediately to the partner system. Transmission occurs when the send buffer is flushed, either by sending more data than fits in the send buffer or by issuing a GDS WAIT command.
A successful GDS CONNECT PROCESS causes the conversation state to switch to send state (state 2). Figure 1 is a program fragment showing an example of a GDS CONNECT PROCESS.