TPTERM - leave a TUXEDO System/T application
01 TPSTATUS-REC. COPY TPSTATUS. CALL "TPTERM" USING TPSTATUS-REC.
TPTERM removes a client from a System/T application. If the client is in transaction mode, then the transaction is rolled back. When TPTERM returns successfully, the caller can no longer communicate with any other thread of control nor can it participate in any transactions. Any outstanding conversations are immediately disconnected.
If TPTERM is called more than once (that is, after the caller has already left the application), no action is taken and success is returned.
Upon successful completion, TPTERM sets TP-STATUS to [TPOK].
Under the following conditions, TPTERM fails and sets TP-STATUS to: