MAXWAIT Example 1
If the original scheduling date of the job has passed, give the job an extra three days to be submitted.
Figure 244 MAXWAIT Parameter Example 1
JOB: OPERJOB LIB CTM.PROD.SCHEDULE TABLE: OPER
COMMAND ===> SCROLL===> CRSR
+------------------------------------------------------------------------+
MEMNAME OPERJOB MEMLIB CTM.PROD.JCL
OWNER SYS1 TASKTYPE JOB PREVENT-NCT2 Y DFLT N
APPL OPER GROUP MAINTENANCE
DESC JOB RUN IN FIRST HALF OF THE MONTH
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM OPERJOB DOCLIB CTM.PROD.DOC
========================================================================
DAYS 02,04,06 DCAL
AND/OR
WDAYS WCAL
MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
DATES
CONFCAL SHIFT RETRO Y MAXWAIT 03 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
========================================================================
IN
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
Assume that the job does not run due to the absence of the required runtime resources. The job that is scheduled for the 2nd of the month can wait from the 2nd through the 5th to be executed.
On the 6th, the MAXWAIT period expires and the job scheduled for the 2nd is not executed. The jobs scheduled for the 4th and 6th wait for execution until the 7th and 9th.
MAXWAIT Example 2
The job can wait for execution indefinitely, until the runtime requirements for the job are satisfied:
MAXWAIT 99
MAXWAIT Example 3
Schedule the job for every working day, even if the computer is not active. Give the job an extra day in which to be submitted.
Assume that calendar WORKDAYS, specified in the DCAL parameter, contains the values 15, 16, 18, and 19. The computer was offline from the 16th up to and including the 18th, and the 15th was the last date that the job was scheduled for execution.
Figure 245 MAXWAIT Parameter Example 3
JOB: PRDKPL01 LIB CTM.PROD.SCHEDULE TABLE: PRODKPL
COMMAND ===> SCROLL===> CRSR
+----------------------------------------------------------------------+
MEMNAME PRDKPL01 MEMLIB CTM.PROD.JCL
OWNER SYS1 TASKTYPE JOB PREVENT-NCT2 DFLT N
APPL KPL GROUP PROD-KPL
DESC DAILY PRODUCTION - START OF APPL-PROD-KPL
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM PRDKPL01 DOCLIB CTM.PROD.DOC
======================================================================
DAYS DCAL WORKDAYS
AND/OR
WDAYS WCAL
MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
DATES
CONFCAL SHIFT RETRO Y MAXWAIT 01 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
======================================================================
IN
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
Today is the 19th. The job is scheduled three times with the different original scheduling dates of the 16th, 18th and 19th.
The jobs on the 16th and 18th are disregarded on the 20th if they have not yet executed. The job on the 19th is disregarded only on the 21st.
MAXWAIT Example 4
Schedule the job for every working day, even if the computer is not active. If it does not execute within the scheduled day, remove it from the Active Job file:
MAXWAIT 00
Parent Topic |