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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Suppose you want JOBA to run on any day but Monday or Tuesday. Why<br />

does the criteria statement preceding not make that happen?<br />

Instead, JOBA is always selected because on Mondays, JOBA is selected<br />

because it is not Tuesday. And on Tuesdays (and every other day), JOBA is<br />

selected because it is not Monday.<br />

There are two valid ways to code this criteria:<br />

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

NOT (MON OR TUE)<br />

Another way to express this criteria:<br />

NOT MON AND NOT TUE<br />

Example 5<br />

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

ADAY AND JOBA SCHED1 AND<br />

GBLB1=YES<br />

OR<br />

ADAY AND GBLB1=YES<br />

JOBB in SCHED01 will always be selected on ADAY. The confusion arises<br />

when evaluating predecessors. JOBB is always supposed to wait <strong>for</strong> the global<br />

GBLB01 to be set to YES. If JOBA is in the day's workload, it is supposed to be<br />

a predecessor to JOBB.<br />

That is not what happens. Instead, when JOBA is present, status shows that<br />

JOBB waits <strong>for</strong> predecessors JOBA, GBLB01, and GBLB01. When GBLB01 is set<br />

to YES, JOBB starts regardless of JOBA because of the second GBLB01. The<br />

following is what happens.<br />

After JOBB is selected, these predecessors are left <strong>for</strong> evaluation:<br />

(JOBA SCHED01 AND GBLB01=YES) OR (GBLB01=YES)<br />

JOBB will start as soon as GBLB01 is set to YES.<br />

The correct way of coding this criteria statement is:<br />

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

ADAY AND JOBA AND GBLB1=YES<br />

OR<br />

ADAY<br />

Chapter 5. Criteria Language 5-27

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

Saved successfully!

Ooh no, something went wrong!