The IMS transaction ID reported by the IMS CDC agent is based on the recovery token provided by IMS to the DFSFLGX0 exit. Basically we take the last 8 bytes which contain timestamp information, convert them to HEX and return A for 0, B for 1 and so on.