# tibemsXAResource_Prepare

Function

## Purpose

Prepare a transaction for commit.

## C Declaration

    tibems_status tibemsXAResource_Prepare(
        tibemsXAResource xaResource,
        XID* xid );

## COBOL Call

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

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

## Parameters

Parameter | Description
--- | ---
`xaResource` | Prepare the transaction in this resource.
`xid` | Prepare this transaction.

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