# tibemsXAResource_End

Function

## Purpose

Disassociate a transaction from the resource.

## C Declaration

    tibems_status tibemsXAResource_End(
        tibemsXAResource xaResource,
        XID* xid,
        int flags );

## COBOL Call

    CALL "tibemsXAResource_End"
         USING BY VALUE xaResource,
               BY REFERENCE xid,
               BY VALUE flags,
               RETURNING tibems-status
    END-CALL.

Note: `xaResource` and `xid` have usage pointer.

## Parameters

Parameter | Description
--- | ---
`xaResource` | Disassociate the transaction from this resource.
`xid` | Disassociate this transaction from the resource.
`flags` | `TMSUCCESS`—Completely end the transaction. `TMSUSPEND`—Temporarily disassociate the transaction from this resource.

Copyright © Cloud Software Group, Inc. All rights reserved.