Purpose: The RTRACE command can be used to enable rule tracing for a job without having to add a DD trace card or modify the product rules. The command was designed primarily for rule traces on started tasks: HSM, CICS, IMS, etc. A DDname or dataset name filter can also be specified on the command. Like the normal DD trace request, the output from a rules trace is written to the JES messages file for the job.
ENABLE RTRACE {prodname} {jobname} {filter}
DISABLE RTRACE Comments: The product name, jobname, and filter parameters are all required. The filter can be specified to limit rules tracing to a specific ddname or dataset. The jobname and filter can use a masking character (*) to limit rules tracing to specific DDnames or datasets. If just the masking character (*) is specified for the filter, all datasets and ddnames will be traced within the job. Lastly, only one RTRACE can be active at a time.
Examples: To activate rules tracing for SRS for all started tasks beginning with CICS and any DD or dataset starting with ABCDB*, the following console command can be used:
F DIF,ENABLE RTRACE SRS CICS* ABCDB*