Connecting the partner transaction
When a session has been acquired, the next step is to cause the partner transaction to be initiated.
The state table shows that, in allocated state (state 1), one of the commands available is SEND. Using this command, the back-end transaction identifiers can be specified in the first four bytes of the data which, when transferred to the partner system, will attach the required back-end transaction. The send buffer containing the transaction name together with any other data, will be flushed immediately and the front-end transaction will wait until a response is received from the back-end transaction.
Alternatively, when a session has been acquired, the front-end transaction can build and send an attach header with the first transmission of data. The attach header can be built using the BUILD ATTACH command.
When using the BUILD ATTACH command, you must give a name to the built attach header which can then be used in the ATTACHID option of the first SEND (or converse) command. The back-end transaction name should also be specified.