DEFTRNID is a region-wide authorized command that can be used to define the name of an exec to be invoked for a particular CICS transaction identifier.
Define a new CICS transaction ID named XYZ, make it call exec TESTEXEC when it is started, then take the following steps: