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.

3.1 Defining Schedules<br />

3.1.4.1 When Will this Schedule Be Selected?<br />

When <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> runs autoscan, it automatically selects that day's<br />

workload. The selection process is a loop consisting of two steps:<br />

■<br />

■<br />

First, <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> finds a schedule to select. Only schedules<br />

with AUTO SELECT = YES are eligible <strong>for</strong> automatic selection. If AUTO<br />

SELECT = YES, <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> checks the selection criteria<br />

defined <strong>for</strong> that schedule to see whether that schedule should be selected<br />

today.<br />

Then it scans the selection criteria of every job in that schedule to select the<br />

jobs belonging in that day's workload. When <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong><br />

finishes with that schedule, it is ready to find another it can automatically<br />

select today.<br />

<strong>Job</strong>s can only run on days when their schedules are selected. <strong>Job</strong>s that run<br />

daily must belong to schedules that are selected every day. That is why we<br />

advise you to group an application's daily jobs into one schedule.<br />

Initially, the default <strong>for</strong> AUTO SELECT prevents schedules from being<br />

automatically selected. That gives you time to test schedule and job definitions<br />

to be sure jobs run on the appropriate days. When you are satisfied with those<br />

definitions, set AUTO SELECT = YES to have <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> include<br />

that schedule among those it evaluates at autoscan time.<br />

Three more fields control when schedules are selected: DATETABLE NAME,<br />

SCR, and SKIP.<br />

■<br />

■<br />

■<br />

To select a schedule every day, leave DATETABLE NAME blank and do<br />

not define a schedule criteria record (leave SCR: N).<br />

To select a schedule only on certain days, you will need to define a<br />

schedule criteria record (SCR). That criteria record may contain keywords<br />

that refer to days defined in a datetable. If that datetable is the default, you<br />

can leave the DATETABLE field blank. Otherwise, specify the appropriate<br />

datetable name. See the chapter "Criteria Language" <strong>for</strong> detailed<br />

instructions on how that is done.<br />

Once you have set AUTO SELECT = YES, you may want to deactivate a<br />

schedule <strong>for</strong> a while. You can use this advanced technique to handle such<br />

exceptional situations, but normally you will not use the SKIP field.<br />

Rather than setting AUTO SELECT = NO again, use the SKIP field to stop<br />

selecting this schedule in autoscan <strong>for</strong> a while. Specify how many times you<br />

want to skip this schedule when it ordinarily would be selected. For example,<br />

suppose a schedule that normally runs on Friday instead ran on Tuesday this<br />

week. Specify SKIP = 1 to prevent that schedule from running this Friday.<br />

Every time <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> skips over a schedule it normally would<br />

have selected, it decrements the value in the SKIP field by one until SKIP once<br />

again is zero.<br />

3-10 <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!