TRACE (Report control statements)
The TRACE control statement produces the Trace Report.
[ID={ALL|(0,1,2,...,99)}]
[,MODE={DIE|SRM|TCB}]
[,LIMIT=0|nnnn]
[,START=yyddd:hhmmss]
[,STOP=yyddd:hhmmss]
The trace formatter differs in architecture from other Analyzer reporters in that the trace formatter does not have a data collection phase. The trace records are formatted and written out as they are read. For this reason, a separate DCB is used to produce the Trace Report. The ddname for this DCB is allocated dynamically by the Analyzer, unless the optional DD statement, //CMXTRACE, is used to direct the output from the Trace Report.
The TITLE and LOCATION parameters from the HEADERS general control statement are not reproduced on the Trace Report. If a SUBTITLE statement is defined, it is displayed on the Trace Report.
The TRACE statement uses data collected by the TRACE Extractor control statement.
Parameters
The parameters for the TRACE control statement are as follows:
ID= | specifies IDs for which the trace data is to be formatted Valid ID values are 0 through 99 and ALL; the default is ALL. If ALL is defined, all encountered trace IDs are formatted. If you specify a value for this parameter, the corresponding values must be specified in the TRACE Extractor control statement. |
---|---|
MODE= | specifies the types of trace entries to be formatted: DIE, SRM, or TCB If you do not specify a mode, all modes are formatted. |
LIMIT= | limits the number of entries to be processed Valid values are any value from 0 through 9999; the default is 0. If 0 is defined, all entries encountered are formatted. |
START= | specifies the starting date and time for selecting trace records If START is not specified, selection begins with the first trace record encountered. The starting date and time is defined in the same manner as the start date-time value for the DATETIME control statement. |
STOP= | specifies the ending date and time for selecting trace records If STOP is not specified, selection terminates with the last trace record encountered. The ending date and time is defined in the same manner as the end date-time value for the DATETIME control statement. |
Examples
The following examples illustrate the use of the TRACE control statement.