TPTERM-leave a BEA TUXEDO system application
01TPSTATUS-REC.
COPY TPSTATUS.
CALL "TPTERM" USINGTPSTATUS-REC.
TPTERM removes a client from a BEA TUXEDO system 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:
TPEPROTO]
TPTERM was called in an improper context (for example, the caller is a server).
TPESYSTEM]
TPEOS]
TPINITIALIZE()