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.3 Some Examples 5.3 Some Examples Now that you are familiar with the criteria language and calendar mechanisms, consider how to apply what you have learned to the following scheduling problems. Example 1 To run the Weekend Summary Report on the first workday of the week, which criteria statement would you use? Criteria: WDOW1 Example 2 Now use another variation of WDOW to schedule the Weekly Summary Report to run on the last workday of the week. Criteria: WDOW-1 Example 3 Which criteria statement would you use to run the Monthly Summary Report on the first workday of the month? Criteria: WDOM1 Example 4 Which variation of WDOM will run the Monthly Summary Report on the last workday of the month? Criteria: WDOM-1 5-20 Unicenter CA-Scheduler User Guide

5.3 Some Examples Example 5 The weekly accounting report runs on Friday. If Friday is a holiday, the report runs on the following Monday. If the following Monday is also a holiday, the report runs on the following Tuesday. Which criteria statement conveys this meaning? Criteria: (FRI AND WDAY) OR (MON AND WDAY AND HDAY-3) OR (TUE AND WDAY AND HDAY-4 AND HDAY-1) Example 6 An Accounting schedule (ACCPROD) consists of three jobs: ■ ■ ■ PROD001 - the daily summary that runs each workday PROD002 - the summary that runs on Friday whether Friday is a holiday, and is not dependent on PROD001 PROD003 - the weekly summary report that runs on Friday night and must wait for the other two jobs to finish Which criteria statements apply to this schedule and its jobs? Criteria for schedule ACCPROD&COLON. None: All jobs may be selected daily. Criteria for job PROD001: WDAY Criteria for job PROD002: FRI Criteria for job PROD003: FRI AND (PROD1 ACCPROD OR PROD2 ACCPROD) For selection purposes, the OR expression will be handled as expected. However, predecessors that are jobs are handled as if there is always an AND condition. Consequently, if Friday is a workday, PROD003 will wait for both PROD001 and PROD002. Chapter 5. Criteria Language 5-21

5.3 Some Examples<br />

Example 5<br />

The weekly accounting report runs on Friday. If Friday is a holiday, the report<br />

runs on the following Monday. If the following Monday is also a holiday, the<br />

report runs on the following Tuesday. Which criteria statement conveys this<br />

meaning?<br />

Criteria:<br />

(FRI AND WDAY) OR<br />

(MON AND WDAY AND HDAY-3) OR<br />

(TUE AND WDAY AND HDAY-4 AND<br />

HDAY-1)<br />

Example 6<br />

An Accounting schedule (ACCPROD) consists of three jobs:<br />

■<br />

■<br />

■<br />

PROD001 - the daily summary that runs each workday<br />

PROD002 - the summary that runs on Friday whether Friday is a holiday,<br />

and is not dependent on PROD001<br />

PROD003 - the weekly summary report that runs on Friday night and<br />

must wait <strong>for</strong> the other two jobs to finish<br />

Which criteria statements apply to this schedule and its jobs?<br />

Criteria <strong>for</strong> schedule ACCPROD&COLON.<br />

None: All jobs may be selected daily.<br />

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

WDAY<br />

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

FRI<br />

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

FRI AND<br />

(PROD1 ACCPROD OR PROD2<br />

ACCPROD)<br />

For selection purposes, the OR expression will be handled as expected.<br />

However, predecessors that are jobs are handled as if there is always an AND<br />

condition. Consequently, if Friday is a workday, PROD003 will wait <strong>for</strong> both<br />

PROD001 and PROD002.<br />

Chapter 5. Criteria Language 5-21

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

Saved successfully!

Ooh no, something went wrong!