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

supportcontent.ca.com
from supportcontent.ca.com More from this publisher
03.03.2015 Views

5.4 What Is Wrong with These Examples? After JOBB in SCHED01 is selected, only these predecessors are left for evaluation: (JOBA AND GBLB01=YES) When JOBA is not in the day's workload, Unicenter CA-Scheduler knows that it cannot be a predecessor. Example 6 Criteria for job JOBB: MON OR TUE OR WED OR THU OR FRI OR (SAT AND PRED JOBA) The intent is that JOBB would run Monday through Saturday, but only on Saturday if JOBA completed sometime since last Saturday (for example, it may be that JOBA only runs on Fridays). The rule is that keyword-defined explicit predecessors apply across all selection criteria. Consequently, JOBB will wait for JOBA every time JOBB is selected (even on Monday, Tuesday, and so forth). To accomplish this, you have to set up JOBB as two separate jobs: JOBB-01 and JOBB-02. Notice how the criteria for JOBB-01 has been simplified following. The correct way of coding this criteria statement is: Criteria for the first job JOBB-01: WEEK-DAY Criteria for the second job JOBB-02: SAT AND PRED JOBA 5-28 Unicenter CA-Scheduler User Guide

5.5 Summing Up 5.5 Summing Up Evaluate criteria statements twice: once to determine selection criteria and again to identify predecessor conditions. When coding a job in the criteria language, always qualify it with its schedule name. Use the SCD keyword before a schedule name to identify it as such. Selection Predecessors Calendars Datetables A job will only be evaluated for selection and eligible for today's workload if its schedule is selected or eligible for today's workload. A schedule is considered eligible for selection if the only reason it was not selected is because it was defined with AUTO SELECT=NO. The NOT keyword only applies to selection. Every job or schedule listed in a criteria statement is a predecessor if it is also in or eligible to be in the day's production. Whether those jobs or schedules are part of the reason for selection does not matter. Unicenter CA-Scheduler observes ORs used with all keyword-defined predecessors except PRED, meaning NJE,VSE, DSN, GDG, and GBLxnn. A criteria statement like NOT JOBA defines JOBA as a predecessor. If jobs or schedules are predecessors, Unicenter CA-Scheduler waits for them to complete unless you precede their names with the keyword START. Define daily, weekly, and monthly calendars for selecting schedules and jobs. When using calendars, only the calendar name determines selection. Define three years' worth of datetables for each unique datetable name. Each year being accessed must have a datetable for the year before and after it. Chapter 5. Criteria Language 5-29

5.5 Summing Up<br />

5.5 Summing Up<br />

Evaluate criteria statements twice: once to determine selection criteria and<br />

again to identify predecessor conditions. When coding a job in the criteria<br />

language, always qualify it with its schedule name. Use the SCD keyword<br />

be<strong>for</strong>e a schedule name to identify it as such.<br />

Selection<br />

Predecessors<br />

Calendars<br />

Datetables<br />

A job will only be evaluated <strong>for</strong> selection and eligible <strong>for</strong><br />

today's workload if its schedule is selected or eligible <strong>for</strong><br />

today's workload. A schedule is considered eligible <strong>for</strong><br />

selection if the only reason it was not selected is because it<br />

was defined with AUTO SELECT=NO.<br />

The NOT keyword only applies to selection.<br />

Every job or schedule listed in a criteria statement is a<br />

predecessor if it is also in or eligible to be in the day's<br />

production. Whether those jobs or schedules are part of the<br />

reason <strong>for</strong> selection does not matter.<br />

<strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> observes ORs used with all<br />

keyword-defined predecessors except PRED, meaning<br />

NJE,<strong>VSE</strong>, DSN, GDG, and GBLxnn.<br />

A criteria statement like NOT JOBA defines JOBA as a<br />

predecessor.<br />

If jobs or schedules are predecessors, <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong><br />

waits <strong>for</strong> them to complete unless you precede their names<br />

with the keyword START.<br />

Define daily, weekly, and monthly calendars <strong>for</strong> selecting<br />

schedules and jobs. When using calendars, only the calendar<br />

name determines selection.<br />

Define three years' worth of datetables <strong>for</strong> each unique<br />

datetable name. Each year being accessed must have a<br />

datetable <strong>for</strong> the year be<strong>for</strong>e and after it.<br />

Chapter 5. Criteria Language 5-29

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

Saved successfully!

Ooh no, something went wrong!