Previous Topic

Next Topic

Book Contents

Book Index

Example

Check the messages of the M200AB10 job for the string NOT BALANCED in columns 20 through 40 of the message. If the string is found, trigger a job for execution under Control-M, using a DO FORCEJOB statement that selects a job from a Control-M scheduling table and places it on the Active Jobs file. The job name is composed of the third word of the message (using an AutoEdit variable). The message is also suppressed from the operator console.

Figure 220 ON STRING Parameter Example

RL: NOT BALANC LIB CTO.PROD.RULES                               TABLE: JOB

COMMAND ===>                                                    SCROLL===> CRSR

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

  ON STRING   = NOT BALANCED                                    COL 020 - 040

     JNAME M200AB10 JTYPE J       SMFID        SYSTEM

     ROUTE          DESC          CONSOLEID    CONSOLE

     APPEARED     TIMES IN      MINUTES                          And/Or/Not

  OWNER IOAADMIN GROUP                         MODE PROD    RUNTSEC

  THRESHOLD

  DESCRIPTION CHECK IF A BRANCH IS NOT BALANCED DURING UPDATE EXECUTION.

  DESCRIPTION IF IT IS, TRIGGER A JOB UNDER CONTROL-M. THE JOB NAME IS

  DESCRIPTION DETERMINED ACCORDING TO THE BRANCH GROUP NAME (THIRD WORD

  DESCRIPTION OF THE MESSAGE). THE MESSAGE IS ALSO SUPPRESSED.

  DESCRIPTION

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

  DO DISPLAY  = SUPPRESS A ROUTE     DESC    CONSOLEID    CONSOLE

     SYSTEM

  DO SET      = %%J = %%$W3                                          GLOBAL  N

  DO FORCEJOB = TABLE   M200NBAL JOB NBAL%%J   UFLOW N    DATE ODAT

                LIBRARY CTM.PROD.SCHEDULE

    DO

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

FILL IN RULE DEFINITION. CMDS: EDIT, SCHED, OPT, SHPF                  12.33.38

Parent Topic

ON STRING: Message/Event Selection Parameter