Session failure in response to ISSUE PREPARE
In an APPC mapped conversation, a transaction issues an ISSUE PREPARE command, its partner responds with a SYNCPOINT command, but the session fails before the first transaction receives the response.
Figure 1
illustrates what happens if the session
fails after ISSUE PREPARE is received by transaction B and before the
SYNCPOINT
response is received by transaction A on an APPC mapped conversation. The
figure also shows the conversation state before each command and the
state
and EIB fields set after each command.
Figure 1. Session failure during SYNCPOINT in response to ISSUE
PREPARE on an APPC mapped conversation. 
In this figure, transaction
A is communicating with transaction B using an APPC mapped
conversation. Initially,
transaction A's conversation with B is in
send state
, and transaction
B's conversation with A is in
receive state
.
- Transaction A issues an ISSUE PREPARE command; the syncpoint request is transmitted, and the transaction is suspended until a response is received from transaction B.
- Transaction B issues a RECEIVE command which returns control immediately; EIBSYNC and EIBRECV are set, and its conversation is in syncreceive state .
- The session between transaction A and transaction B fails.
From this point , the two transactions are independent of one another.
- Transaction A abends with code ASP1.
- Transaction B issues a SYNCPOINT command; its conversation is in receive state .
- Transaction B issues a RECEIVE command which returns control immediately; EIBERR and EIBFREE are set, and its conversation is in free state .
- Transaction B issues a FREE command to free its conversation with transaction A.
- Transaction B issues a SYNCPOINT ROLLBACK command in order that its resources remain consistent with transaction A's resources.
