TPCLOSE-close the BEA TUXEDO system resource manager
01TPSTATUS-REC.
COPY TPSTATUS.
CALL "TPCLOSE" USINGTPSTATUS-REC.
TPCLOSE tears down the association between the caller and the resource manager to which it is linked. Since resource managers differ in their close semantics, the specific information needed to close a particular resource manager is placed in a configuration file.
If a resource manager is already closed (that is, TPCLOSE is called more than once), no action is taken and success is returned.
Upon successful completion, TPCLOSE sets TP-STATUS to [TPOK].
Under the following conditions, TPCLOSE fails and sets TP-STATUS to:
[TPERMERR]
[TPEPROTO]
TPCLOSE was called in an improper context (for example, while the caller is in transaction mode).
[TPESYSTEM]
[TPEOS]
TPOPEN()