Previous Topic

Next Topic

Book Contents

Book Index

Using a DO CTBRULE statement

When Control-M job results are analyzed, the specified Control-M/Analyzer rule is automatically executed for each DO CTBRULE statement.

Note: If a DO CTBRULE statement is specified under ON PGMST ANYSTEP, the rule is executed only once (meaning, the Control-M/Analyzer Runtime Environment is invoked one time only) and not once for each step in the job.

Figure 377 Using DO CTBRULE in Control-M

 JOB: GOVTREPT LIB CTM.PROD.SCHEDULE                             TABLE: PRODKPL

 COMMAND ===>                                                    SCROLL===> CRSR

 +-----------------------------------------------------------------------------+

   TIME: FROM       UNTIL         PRIORITY                          CONFIRM

   ============================================================================

   OUT      FINANCE-GOVTREPT-OK  ODAT +

   AUTO-ARCHIVE Y          SYSDB    Y      MAXDAYS      MAXRUNS

   SYSOUT OP   (C,D,F,N,R)                                              FROM

   RERUN  - MAXRERUN       RERUNMEM                     INTERVAL

   STEP RANGE         FR (PGM.PROC)                     TO          

   ON PGMST ANYSTEP  PROCST          CODES *****                         A/O

     DO CTBRULE   = RULCTMM  ARG

     DO

   ON PGMST          PROCST          CODES                               A/O

     DO

   SHOUT WHEN NOTOK    TIME       +     DAYS        TO TSO-M44          URGN R

     MS JOB GOVTREPT ENDED "NOT OK"

   SHOUT WHEN          TIME       +     DAYS        TO                  URGN

     MS

 ======= >>>>>>>>>>>>>>>>>>> END OF SCHEDULING PARAMETERS <<<<<<<<<<<<<<<< =====

 USE THE DOC COMMAND TO SHOW/HIDE JOB DOCUMENTATION                     11.17.00

Note: Passing of arguments from DO CTBRULE statements to an invoked Control-M/Analyzer rule is not yet supported.

Parent Topic

Interface to Control-M