Ending a conversation normally

The SEND LAST command is used to terminate a conversation. It should be used in conjunction with either the WAIT option or the SYNCPOINT command, and followed by the FREE command.

However, SEND LAST WAIT causes the conversation to end before any subsequent syncpoint can be propagated to the partner transaction. This may mean that the protected resources in one system could be committed while those in the other system could be backed out.

From the state table it can be seen that it is possible to end a conversation by issuing the FREE command provided the conversation is in send state (state 2). This generates an implicit SEND LAST WAIT command before the FREE is executed and therefore is not recommended.

Note: A distributed transaction should not end a conversation by issuing an EXEC CICS® RETURN command, but instead follow the sequence of commands as described. The issue of an EXEC CICS RETURN could lead to one or both transactions ending abnormally.


dfhp62i.html | Timestamp icon Last updated: Monday, 5 June 2017