OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
#include <dcvclt.h> DCLONG dc_clt_get_trnid_s(DCCLT_ID cltid, char *trngid, char *trnbid)
#include <dcvclt.h> DCLONG dc_clt_get_trnid(char *trngid, char *trnbid)
#include <dcvclt.h> DCLONG dc_clt_get_trnid_s(DCCLT_ID cltid, char CLTFAR *trngid, char CLTFAR *trnbid)
#include <dcvclt.h> DCLONG dc_clt_get_trnid(char CLTFAR *trngid, char CLTFAR *trnbid)
Collects the global identifier for the current transaction and the identifier for the current transaction branch.
These identifiers were assigned by OpenTP1 when the following functions were issued to start the transaction:
Return Value | Value (decimal) | Meaning |
---|---|---|
DC_OK | 0 | Normal termination |
DCCLTER_INVALID_ARGS | -2501 | The pointer of trngid or trnbid is NULL. |
DCCLTER_PROTO | -2502 | The function has been issued from an invalid context (for example, from outside a transaction). |
DCCLTER_NO_BUFS | -2504 | Insufficient memory |
DCCLTER_INVALID_CLTID | -2544 | The client ID specified for cltid differs from the one received by the dc_clt_cltin_s function. |
Specify an area of 17 bytes or greater for each of the trngid and trnbid arguments. If the area is smaller than 17 bytes, the area may be corrupted during TP1/Client internal processing.
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.