Previous Topic

Next Topic

Book Contents

Book Index

Manually switching paths

Sections of a job set can be turned on or off by using a control variable. In Job Group C, the variable CONTROL can be changed to either RUN or SKIP to determine whether jobs UPDATE and SUMMARY will run. If the variable is RUN then the initiates will execute through UPDATE and SUMMARY. If the variable is SKIP then the initiates will execute through the job SKIP and to END1 bypassing UPDATE and SUMMARY.

For the first example of job flow control, see the variable CONTROL in the JOB_C window. The variable is set to it's default setting RUN initially. This means the jobs UPDATE and SUMMARY will be held from running if the CONTROL variable is set to SKIP. This is controlled by the job SUB1 which has the following END ACTION list:

SKIP, IF CONTROL .NES. "RUN"

UPDATE, IF CONTROL .EQS. "RUN"

See Also

Example 3: Controlling job flow

One at a time