When the TRACE facility is applied to a particular rule, you can receive a printout, by block, of the executed Control-M/Analyzer commands. This printout becomes available even as the rule is executing.
An example of this process is shown below.
Assume the rule to which the TRACE facility is to be applied is that illustrated in Figure 412
Figure 412 Applying the TRACE Facility to a Rule
EXECUTE ‘INIT’
ON_DATA
IF ‘NOT(ISVAR(DB_INTRAC.FOU))’
DO GOTO ‘NOCHK’
IF ‘DB_INTRAC.FOU>1’
DO PRINT DATA ‘FOU is greater than 1’
LABEL ‘NOCHK’
ALWAYS
DO SET ‘MYVAR’ EVAL ‘1.000’
DO PRINT DATA ‘’’TEXT %%MYVAR ‘’’ FORMAT VARNAME ‘MYVAR’
LENGTH 5 PREC 1 DELIMITER ‘Y’
When the rule is run, its output, as shown in DATRACE sysout, is that illustrated in Figure 413.
Figure 413 Output of Rule to Which TRACE Facility Was Applied
********************************* TOP OF DATA *******************
CTBTRC : ** ENTERING BLOCK: INIT OF TYPE DATA
CTBTRC : ON DATA
CTBTRC : IF
CTBTRC : DO GOTO
CTBTRC : DO SET
CTBTRC : DO PRINT
******************************** BOTTOM OF DATA ******************
Parent Topic |