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 />

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

Now that you have a basic understanding of the criteria language, try testing<br />

your knowledge by debugging errors in the following criteria statements.<br />

Example 1<br />

Criteria <strong>for</strong> schedule SCHD01:<br />

MONDAY<br />

Will this job run on Mondays? Not likely because MONDAY is not a<br />

vocabulary word. Instead, <strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> interprets MONDAY as a<br />

job name. There<strong>for</strong>e, this job will only be selected when the job MONDAY is<br />

selected. Since you probably do not have a job named MONDAY, the schedule<br />

SCHD01 would never be selected.<br />

The correct criteria vocabulary word is MON.<br />

Example 2<br />

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

WDOW-1 OR DSN JOBA.DATASET<br />

The intent is to select JOBB on the last workday of the week, but that is not<br />

what happens. Evaluate this statement carefully to see what is wrong. It is<br />

important to evaluate the selection criteria and the predecessor conditions<br />

separately.<br />

What is JOBB's predecessor? The data set JOBA.DATASET must be closed on<br />

the day JOBB is selected be<strong>for</strong>e JOBB will be submitted.<br />

When is JOBB selected? Not just on WDOM-1 (the last workday of the month).<br />

Why? Because of the OR. The days on which JOBB is selected will be:<br />

WDOW-1 OR 'keyword-defined parameter'<br />

<strong>Unicenter</strong> <strong>CA</strong>-<strong>Scheduler</strong> cannot translate DSN JOBA.DATASET into a selection<br />

condition, so the second condition defaults to DAILY. Because of the OR, this<br />

job is selected WDOW-1 OR DAILY. How could you rewrite the statement to<br />

run JOBB when intended? Code the criteria statement with an AND instead of<br />

an OR:<br />

WDOW-1 AND DSN JOBA.DATASET<br />

This selects JOBB on the last workday of the month and waits <strong>for</strong> the data set<br />

JOBA.DATASET to close be<strong>for</strong>e submitting JOBB.<br />

Chapter 5. Criteria Language 5-25

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

Saved successfully!

Ooh no, something went wrong!