State tables for LUTYPE6.1 conversations
Tables showing the state transitions that occur when transactions engage in LUTYPE6.1 conversations, under the EXEC CICS® API.
The ISSUE SIGNAL command and the EIBSIG flag
In the tables, the EIBSIG flag is not mentioned. This is because its use is optional and is entirely a matter of agreement between the two conversation partners. In the worst case, it can occur at any time after every command that affects the EIB flags. However, used for the purpose for which it was intended, it usually occurs after a SEND command. Its priority in the order of testing depends on the role you give it in the application.
The EIBSIG flag is set when the partner issues the ISSUE SIGNAL command.
The RECEIVE NOTRUNCATE command
The RECEIVE NOTRUNCATE command returns a zero value in EIBCOMPL to indicate that the user buffer was too small to contain all the data received from the partner transaction. Normally, you would continue to issue RECEIVE NOTRUNCATE commands until the last section of data is passed to you, which is indicated by EIBCOMPL = X'FF' . If NOTRUNCATE is not specified, and the data area specified by the RECEIVE command is too small to contain all the data received, CICS truncates the data and sets the LENGERR condition.
State changes for the SYNCPOINT and SYNCPOINT ROLLBACK commands
When the SYNCPOINT and SYNCPOINT ROLLBACK commands are issued, they are propagated on, and affect the state of, all the conversations that are currently active for the task, including APPC and MRO conversations.
State tables
| Command issued | EIB flag returned | Command returns | ALLO- CATED | SEND | PEND- RECEIVE | PEND- FREE | RECEIVE | CONF- RECEIVE |
|---|---|---|---|---|---|---|---|---|
| State 1 | State 2 | State 3 | State 4 | State 5 | State 6 | |||
| BUILD ATTACH | × | Immediately | = | = | = | = | = | N/A |
| EXTRACT ATTACH | × | Immediately | = | = | = | = | = | N/A |
| SEND INVITE WAIT | × | After data and CD flows | 5 | 5 | Abend | Abend | Abend | N/A |
| SEND INVITE | × | After data buffered | 3 | 3 | Abend | Abend | Abend | N/A |
| SEND LAST WAIT | × | After data and EB flows | 12 | 12 | Abend | Abend | Abend | N/A |
| SEND LAST | × | After data buffered | 4 | 4 | Abend | Abend | Abend | N/A |
| SEND | × | After data buffered | = | = | Abend | Abend | Abend | N/A |
| RECEIVE | EIBSYNC + EIBFREE | After sync flow detected | Abend | 11 | 11 | Abend | 11 | N/A |
| RECEIVE | EIBSYNC + EIBRECV | After sync flow detected | Abend | 9 | 9 | Abend | 9 | N/A |
| RECEIVE | EIBSYNC | After sync flow detected | Abend | 10 | 10 | Abend | 10 | N/A |
| RECEIVE | EIBFREE | After EB detected | Abend | 12 | 12 | Abend | 12 | N/A |
| RECEIVE | EIBRECV | When data available | Abend | 5 | 5 | Abend | = | N/A |
| RECEIVE NOTRUNCATE | EIBCOMPL | When data available | Abend | 5 | 5 | Abend | = | N/A |
| RECEIVE | × | When data available | Abend | 2 | 2 | Abend | 2 | N/A |
| CONVERSE | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | As for RECEIVE but allowed in send state | |
| ISSUE SIGNAL | × | Immediately | Abend | = | = | = | = | N/A |
| WAIT SIGNAL | × | After response from partner | Abend | = | = | = | = | N/A |
| SYNCPOINT | × | After response from partner | = | = | 5 | 12 | Abend | N/A |
| WAIT TERMINAL | × | Immediately | = | = | 5 | 12 | = | N/A |
| FREE | × | Immediately | End | End | Abend | End | Abend | N/A |
| Command issued | EIB flag returned | CONF- SEND | CONF- FREE | SYNC- RECEIVE | SYNC- SEND | SYNC- FREE | FREE | ROLL- BACK |
|---|---|---|---|---|---|---|---|---|
| State 7 | State 8 | State 9 | State 10 | State 11 | State 12 | State 13 | ||
| BUILD ATTACH | × | N/A | N/A | N/A | = | = | = | = |
| EXTRACT ATTACH | × | N/A | N/A | = | = | = | = | N/A |
| SEND INVITE WAIT | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| SEND INVITE | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| SEND LAST WAIT | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| SEND LAST | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| SEND | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | EIBSYNC + EIBFREE | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | EIBSYNC + EIBRECV | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | EIBSYNC | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | EIBFREE | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | EIBRECV | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE NOTRUNCATE | EIBCOMPL | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| RECEIVE | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| CONVERSE | As for RECEIVE | As for RECEIVE | As for RECEIVE | As for RECEIVE | As for RECEIVE | As for RECEIVE | As for RECEIVE | |
| ISSUE SIGNAL | × | N/A | N/A | = | = | = | Abend | N/A |
| WAIT SIGNAL | × | N/A | N/A | = | = | = | Abend | N/A |
| SYNCPOINT | × | N/A | N/A | 5 | 2 | 12 | = | N/A |
| WAIT TERMINAL | × | N/A | N/A | Abend | Abend | Abend | Abend | N/A |
| FREE | × | N/A | N/A | Abend | Abend | Abend | End | N/A |