The SQL return codes can be made available in the Transaction log record provided that:
the IMSLOGR Parmlib member specifies DETAIL for TRAN-EVENT-TRACE-LEVEL.
And
That the IMSLOGR Parmlib member also have MONITOR-ESS-CALLS set to YES.
Here is a sample of what is displayed in the tran log record:
Sample ESS section of a record displayed from IMSTLOG:
Section: ESS Trace
ESSName PSBName Call RCODE Count AvgTime MaxTime TotTime
DT31 DSN8IC0 SIGNON 0 1 0.004930 0.004930 0.004930
DT31 DSN8IC0 CREATE THREAD 0 1 0.004928 0.004928 0.004928
DT31 DSN8IC0 NORMAL CALL 0 25 0.001676 0.023051 0.041922
DT31 DSN8IC0 COMMIT PHASE 1 0 1 0.000913 0.000913 0.000913
DT31 DSN8IC0 TERM THREAD 0 1 0.002494 0.002494 0.002494