REXX/CICS provides the ability to route trace output to a file. The REXX command SET TERMOUT routes linemode output (such as SAY and TRACE output) to a file instead of, or in addition to, the current terminal device.