Checking the response to GDS SEND CONFIRM
After issuing GDS SEND [INVITE|LAST] CONFIRM, it is important to test CDBERR to determine the partner transaction’s response.
Table 1 shows the response received when the partner transaction issues different commands.
| Command issued in reply by partner transaction | Conversation state | CDBERR | CDBFREE |
|---|---|---|---|
| GDS ISSUE CONFIRMATION | Dependent on original GDS SEND [INVITE|LAST] CONFIRM request | X'00' | X'00' |
| GDS ISSUE ERROR | Receive (state 5) | X'FF' | X'00' |
| GDS ISSUE ABEND | Free (state 12) | X'FF' | X'FF' |
If CDBERR= X'00' , the partner transaction has replied GDS ISSUE CONFIRMATION.
If the partner transaction replies GDS ISSUE ERROR, this is indicated by CDBERR (= X'FF' ) and the first two bytes of CDBERRCD= X'0889'. When the partner transaction replies GDS ISSUE ERROR in response to GDS SEND LAST CONFIRM, the LAST option is ignored and the conversation is not terminated. The conversation is switched to receive state (state 5).
If the partner transaction replies GDS ISSUE ABEND, both CDBERR and CDBFREE are both set ( X'FF' ), and the first two bytes of CDBERRCD contain X'0864'. The conversation is switched to free state (state 12).