# tibemsXAResource_GetRMID

Function

## Purpose

Get the RMID of the resource.

## C Declaration

    tibems_status tibemsXAResource_GetRMID(
        tibemsXAResource xaResource,
        tibems_int* rmid );

## COBOL Call

    CALL "tibemsXAResource_GetRMID"
         USING BY VALUE xaResource,
               BY REFERENCE rmid,
               RETURNING tibems-status
    END-CALL.

Note: `xaResource` has usage pointer.

## Parameters

Parameter | Description
--- | ---
`xaResource` | Get the RMID of this resource.
`rmid` | Store the RMID in this location.

## Remarks

The transaction manager assigns a unique RMID to each resource instance, which it uses to bind together a thread, a resource and a transaction.

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