# mco_trans_no
RT

> Retrieve the “counter” number which uniquely identifies a transaction.

### Prototype

        MCO_RET	mco_trans_no(	/*IN*/ mco_trans_h t, /*OUT*/ mco_trans_counter * no );

### Arguments

t | The `mco_trans_h` transaction handle returned by `mco_trans_start()`
no | The address of an integer variable to receive the “counter” number of this transaction

### Description

> This function is used by `mco_translog_iterate()` callback functions (part of the eXtremeDB Transaction Logging API) when iterating through the Transaction Log file to retrieve the “counter” number which uniquely identifies a transaction. This can be useful when the transaction log was created by multi-threaded applications which can update the same database object from different threads.

### Return Codes

MCO_S_OK | The transaction number was returned successfully
MCO_E_INVALID_HANDLE | Invalid transaction handle

### Example

Please refer to the SDK sample "samples/native/tl/tlogiterpipe".

### Files

Header file:
mco.h
Source file:
mcotrans.c
Library:
libmcolib.a