Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $GETTRANSACTION

$GETTRANSACTION
Gets a transaction name set by $SETTRANSACTION. (F)
Invocation
current_value = $GETTRANSACTION(name)
 
NAME is the only valid field. Its syntax is C (fixed-length character string) with length 16.
Usage
On z/OS, the transaction name is used when SMF records are produced.
Example
The following rule uses $SETTRANSACTION to set a new transaction name, then gets the transaction name and displays it in the end message:

 
RULE EDITOR ===> SCROLL: P
RET_TRANS(TRANSNAME);
_ LOCAL NEWNAME;
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ NEWNAME = $SETTRANSACTION('NAME', TRANSNAME); | 1
_ NEWNAME = $GETTRANSACTION('NAME'); | 2
_ CALL ENDMSG(NEWNAME); | 3
_ ---------------------------------------------------------------------------

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved