ATMI COBOL Function Reference
|
|
TPCANCEL() - cancel a communication handle for an outstanding reply
01TPSVCDEF-REC.
COPY TPSVCDEF.
01TPSTATUS-REC.
COPY TPSTATUS.
CALL "TPCANCEL" USINGTPSVCDEF-RECTPSTATUS-REC.
TPCANCEL() cancels a communication handle, COMM-HANDLE IN TPSVCDEF-REC, returned by TPACALL(). It is an error to attempt to cancel a communication handle associated with a transaction.
Upon success, COMM-HANDLE is no longer valid and any reply received on behalf of COMM-HANDLE will be silently discarded.
Upon successful completion, TPCANCEL() sets TP-STATUS to [TPOK].
Under the following conditions, TPCANCEL() fails and sets TP-STATUS to:
COMM-HANDLE is associated with the caller's transaction. COMM-HANDLE remains valid and the caller's current transaction is not affected.
|
|
|