Previous Topic

Next Topic

Book Contents

Book Index

Examples

\-Ø CICS-DOWN

\-Ø IMS-ACTIVE

The rule will then be activated only if the prerequisite condition is not present.

Or Relations

If a prerequisite condition starts with the character "|" (hexadecimal 4F), it means that it should be checked, with an OR relation, together with other prerequisite conditions of the same rule, which are also marked with "|."

Note: The length of prerequisite condition names used in OR relations is limited to 19 characters.

For example

IN  A  |B

    |C |D

    E

The A and E prerequisite conditions  must exist in order for the rule to be activated. Additionally, one of the other conditions, that is, B or C or D, must also exist.

Rule dependencies can be defined and implemented using the prerequisite conditions created by the DO COND parameter. It can trigger, or stop, the activation of rules in Control-O, or trigger or stop a job or process in Control-M or Control-D.

Control-O AutoEdit System or Global variables embedded in the IN condition name are automatically resolved (replaced) at time of rule ordering (not rule activation). For more information about the AutoEdit facility, see Chapter 4, "AutoEdit Facility."

Each prerequisite condition is associated with a specific scheduling date. This scheduling date is used to differentiate between different activations of the same rule for different scheduling dates.

The PREV date reference automatically resolves into a date reference for the rule’s previous scheduling date.

The **** (or $$$$) date reference in an IN statement is satisfied only by the addition of any prerequisite condition with the same name as that specified IN condition, with any date reference.

The ODAT of an IN condition is only calculated once – when the rule is first ordered. This date is then retained until the rule is reordered.

Example

When a command is issued to start NetView, and it is already active, ignore the command and inform the user that the command has been suppressed.

Figure 189 IN Parameter Example

RL: START NE   LIB CTOW.WORKO.RULES                             TABLE: DATES

COMMAND ===>                                                    SCROLL===> CRSR

------------------------------------------------------------------------------

  ON COMMAND  = START NETVIEW

     JNAME          JTYPE         SMFID        SYSTEM       USERID

     ROUTE          DESC          CONSOLEID    CONSOLE

     APPEARED     TIMES IN      MINUTES                          And/Or/Not

  OWNER IOAADMIN GROUP NETVIEW                 MODE PROD    RUNTSEC

  THRESHOLD

  DESCRIPTION PREVENT START-UP OF NETVIEW IF IT IS ALREADY ACTIVE

  DESCRIPTION

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

  DO DISPLAY  = SUPPRESS Y ROUTE     DESC    CONSOLEID    CONSOLE

     SYSTEM

  DO SHOUT    = TO OPER              URGENCY R SYSTEM           CTO282I

     MESSAGE START COMMAND SUPPRESSED. NETVIEW IS ALREADY ACTIVE

  DO

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

  DAYS                                                          DCAL

                                                                         AND/OR

  WDAYS                                                         WCAL

  MONTHS  1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y

  DATES

  CONFCAL          SHIFT

  ENVIRONMENT SMFID      SYSTEM

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

  IN        CTO-NETVIEW-ACTIVE   STAT

  TIME FROM      UNTIL           INTERVAL      PRIORITY 99  CONTINUE SEARCH N

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

Parent Topic

IN: Runtime Scheduling Parameter