Programming Guide



sm_tm_event_name

Returns the transaction manager event name for the specified event number

#include <tmusubs.h>
char *sm_tm_event_name(int event_number);

event_number
One of the request and event numbers defined in tmusubs.h.

Returns

Description

sm_tm_event_name returns the event name corresponding to the specified event number. Because this function stores the returned data in a pool of buffers that it shares with other functions, copy or process this data immediately.

Example

# JPL Procedure called as an event function that displays 
# each event name as it is processed.
proc getname(event)
vars retname
retname = sm_tm_event_name(event)
msg_emsg "Event name is " retname
return TM_PROCEED