REXX API for formatting and analyzing logs

Transaction Analysis Workbench provides a REXX application programming interface (API) that you can use to format and analyze logs.

The REXX API allows you to analyze any of the file types that Transaction Analysis Workbench supports. You can display the output of your REXX exec in the Transaction Analysis Workbench ISPF dialog or write it to a data set.

You can run a REXX exec in Transaction Analysis Workbench in the following situations:

In the ISPF dialog
You can specify a REXX exec name in the following locations in the Transaction Analysis Workbench ISPF dialog. The exec must be in one of the libraries in your SYSEXEC concatenation.
In a filter
You can specify a REXX exec name in a filter, next to a particular log code. The exec runs in the following situations:
  • When a user browses a record that matches the filter log code and condition
  • When a user zooms on a field in a matching record

If you use a filter in a batch job, any REXX execs named in the filter are ignored. To run a REXX exec in batch, use the REXX command of the report and extract utility.

On the Process Log Files panel (your personal ad hoc list of log files)
You can enter a REXX exec name as a line action next to a log file on the Process Log Files panel: on the Transaction Analysis Workbench Primary Option Menu, select option 4 Process.
Browsing logs
You can enter a REXX exec name on the command line when browsing logs, browsing an individual log record, or zoomed on a field in a log record. The exec runs immediately.
In a batch job
You can specify the name of a REXX exec using the REXX command of the report and extract utility. Instead of creating a report or an extract for the specified log files, the utility runs the REXX exec.