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
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
- Page 184 and 185: 4.2 Displaying Status 4.2.4.1 Defau
- Page 186 and 187: 4.2 Displaying Status SCHD-CP SCHE
- Page 188 and 189: 4.2 Displaying Status If the schedu
- Page 190 and 191: 4.2 Displaying Status or backlogged
- Page 192 and 193: 4.2 Displaying Status The last two
- Page 194 and 195: 4.2 Displaying Status WAITING FOR S
- Page 196 and 197: 4.3 Handling Messages If your messa
- Page 198 and 199: 4.4 Handling Predecessor Conditions
- Page 200 and 201: 4.5 Handling Global Parameters 4.5.
- Page 202 and 203: 4.7 Displaying Data Set Mask Names
- Page 204 and 205: 4.9 Controlling Schedules 4.9 Contr
- Page 206 and 207: 4.10 Controlling Jobs 4.10 Controll
- Page 208 and 209: 4.10 Controlling Jobs Enter RELE CA
- Page 210 and 211: 4.10 Controlling Jobs SCHD-DADP D
- Page 212 and 213: 4.11 Summing Up To Specify Abbrevia
- Page 214 and 215: 4.11 Summing Up This Command Affect
- Page 216 and 217: The criteria language uses three ty
- Page 218 and 219: 5.1 Criteria Vocabulary job. Normal
- Page 220 and 221: 5.1 Criteria Vocabulary Example SCD
- Page 222 and 223: 5.1 Criteria Vocabulary Given the e
- Page 224 and 225: 5.2 Calendar Mechanisms 5.2 Calenda
- Page 226 and 227: 5.2 Calendar Mechanisms 5.2.2.1 Wor
- Page 228 and 229: 5.2 Calendar Mechanisms Suppose you
- Page 230 and 231: 5.2 Calendar Mechanisms datetable o
- Page 232 and 233: 5.2 Calendar Mechanisms The panel f
- Page 236 and 237: 5.3 Some Examples Example 7 A payro
- Page 238 and 239: 5.3 Some Examples ■ ■ If the la
- Page 240 and 241: 5.4 What Is Wrong with These Exampl
- Page 242 and 243: 5.4 What Is Wrong with These Exampl
- Page 245 and 246: Chapter 6. Tips This topic of the m
- Page 247 and 248: 6.1 Commonly Asked Questions 6.1.1.
- Page 249 and 250: 6.1 Commonly Asked Questions Keep i
- Page 251 and 252: 6.1 Commonly Asked Questions 6.1.2.
- Page 253 and 254: 6.1 Commonly Asked Questions To all
- Page 255 and 256: 6.1 Commonly Asked Questions For de
- Page 257 and 258: 6.1 Commonly Asked Questions use of
- Page 259 and 260: 6.1 Commonly Asked Questions 6.1.4
- Page 261 and 262: 6.1 Commonly Asked Questions If the
- Page 263 and 264: 6.1 Commonly Asked Questions Status
- Page 265 and 266: 6.2 Pitfalls predecessor criteria o
- Page 267 and 268: Chapter 7. Techniques This chapter
- Page 269 and 270: 7.1 On-Request Schedules and Jobs 7
- Page 271 and 272: 7.1 On-Request Schedules and Jobs 7
- Page 273 and 274: 7.1 On-Request Schedules and Jobs W
- Page 275 and 276: 7.2 Backlogged Work completes on We
- Page 277 and 278: 7.3 Issuing Online Commands in Batc
- Page 279 and 280: 7.3 Issuing Online Commands in Batc
- Page 281 and 282: 7.3 Issuing Online Commands in Batc
- Page 283 and 284: 7.4 Restart/Recovery of Scheduled J
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