03.03.2015 Views

Unicenter CA-Scheduler Job Management for VSE User Guide

Unicenter CA-Scheduler Job Management for VSE User Guide

Unicenter CA-Scheduler Job Management for VSE User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.4 What Is Wrong with These Examples?<br />

Example 3<br />

Criteria <strong>for</strong> job JOBA:<br />

MON AND JOBB SCHED1 OR WED<br />

Criteria <strong>for</strong> job JOBB:<br />

MON OR WED AND JOBA SCHED1<br />

Here is another problem. Why do not JOBA and JOBB in schedule SCHED01<br />

run when expected? Both jobs are supposed to run Mondays and<br />

Wednesdays. On Mondays, JOBB should be the predecessor to JOBA, but<br />

conversely on Wednesdays.<br />

The meaning of these criteria statements is confusing until you add some<br />

parentheses to show how the system will interpret this:<br />

Criteria <strong>for</strong> job JOBA:<br />

(MON AND JOBB SCHED1) OR WED<br />

Criteria <strong>for</strong> job JOBB:<br />

MON OR (WED AND JOBA SCHED1)<br />

Now it is a bit clearer. First, look at the selection criteria. Both jobs are always<br />

selected on Mondays and Wednesdays:<br />

■<br />

■<br />

JOBA is always selected on Wednesdays, so JOBB is, too.<br />

JOBB is always selected on Mondays, so JOBA is also selected on<br />

Mondays.<br />

That seems in order, so look at the predecessor conditions, remembering the<br />

rule <strong>for</strong> evaluating predecessors:<br />

There are no OR relationships with selection-defined explicit predecessors. All<br />

ORs become ANDs.<br />

The preceding means the explicit predecessor of JOBA is JOBB, and the explicit<br />

predecessor of JOBB is JOBA. When jobs require each other as predecessors,<br />

that creates a predecessor loop, which is also called predecessor deadlock.<br />

Although these deadlocked jobs are selected properly, neither job ever runs<br />

because their predecessors are never satisfied. You can run the Analyze<br />

Report at any time to detect deadlocks automatically.<br />

Example 4<br />

Criteria <strong>for</strong> job JOBA:<br />

NOT MON OR NOT TUE<br />

5-26 <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!