Checking the response from a DTP command can be separated into two stages:
Testing for request failure is the same as for other EXEC CICS® commands in that conditions are raised and may be handled using HANDLE CONDITION or RESP. EIBRCODE will also contain an error code.
If the request has not failed, it is then possible to test for indicators received on the conversation. These are returned to the application in the EIB. The following EIB fields are relevant to all DTP commands. (See the CICS Application Programming Reference for programming information on the contents and format of EIB fields.)
Table 43 shows how these EIB fields interact.
EIB- FREE | EIB- SYNC | Description |
---|---|---|
X'FF' | X'00' | The partner transaction or system has sent SEND LAST followed by a FREE command. |
X'FF' | X'FF' | The partner transaction or system has issued SEND LAST followed by SYNCPOINT. The local program should reply with a SYNCPOINT command followed by a FREE command. |
X'00' | X'FF' | The partner transactions or system has issued a SYNCPOINT. |
In addition, there is a group of EIB fields that are relevant only to the RECEIVE and CONVERSE commands. These are: