OUT Example 1
This example consists of two jobs (screens):
SACALC01 – Calculates salaries
SARPT001 – Generates the Salary Statistics report
The report must be generated after the salaries have been successfully calculated.
Job SACALC01 runs first.
Figure 266 OUT Parameter Example 1 – First Job
JOB: SACALC01 LIB CTM.PROD.SCHEDULE TABLE: SALARY
COMMAND ===> SCROLL===> CRSR
+----------------------------------------------------------------------------+
CTB STEP AT NAME TYPE
DOCMEM SACALC01 DOCLIB CTM.PROD.DOC
===========================================================================
DAYS 01,15 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 00 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
===========================================================================
IN
CONTROL
RESOURCE
PIPE
FROM TIME + DAYS UNTIL TIME + DAYS
DUE OUT TIME + DAYS PRIORITY SAC CONFIRM
TIME ZONE:
===========================================================================
OUT SALARY-OK ODAT +
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
When job SACALC01 ends OK, the prerequisite condition SALARY-OK is added. This triggered the execution of job SARPT001 that requires the condition in order to run.
Job SARPT001 is not run unless job SACALC01 ended OK.
Figure 267 OUT Parameter Example 1 – Second Job
JOB: SARPT001 LIB CTM.PROD.SCHEDULE TABLE: SALARY
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
SET VAR
CTB STEP AT NAME TYPE
DOCMEM SARPT001 DOCLIB CTM.PROD.DOC
===========================================================================
DAYS 01,15 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 00 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
===========================================================================
IN SALARY-OK ODAT
CONTROL
RESOURCE
PIPE
FROM TIME + DAYS UNTIL TIME + DAYS
DUE OUT TIME + DAYS PRIORITY SAC CONFIRM
TIME ZONE:
===========================================================================
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
The report (job SARPT001) is produced twice a month for the 1st and for the 15th. The report of the 15th is produced only if the prerequisite condition of the 15th, SALARY-OK, exists. The existence of the prerequisite condition of the 1st, SALARY-OK, does not cause submission of the report of the 15th (job SARPT001).
The jobs on the 1st, SACALC01 and SARPT001 (report), do not have to run on the 1st of the month. Suppose the salary job (SACALC01) finishes executing (OK) on the 3rd, the prerequisite condition SALARY-OK for the 1st is added, because the prerequisite condition is schedule date dependent.
OUT Example 2
Some jobs (such as IMSBDUPD) must run only when the IMS is active (IMS-ACTIVE):
MEMNAME IMSDBUPD
DAYS 1,15
IN IMS-ACTIVE STAT
The prerequisite condition IMS-ACTIVE is "generic," and it only exists when IMS is active. IMS itself is monitored by Control-M. When IMS is brought down successfully, Control-M deletes the prerequisite condition IMS-ACTIVE for all schedule dates. This prevents the abending of jobs that depend on IMS, such as job IMSDBUPD in the above example. Job IMSDBUPD is not submitted if the prerequisite condition IMS-ACTIVE does not exist.
Figure 268 OUT Parameter – Example 2
JOB: IMSPROD LIB CTM.PROD.SCHEDULE TABLE: IMSPROD
COMMAND ===> SCROLL===> CRSR
+----------------------------------------------------------------------------+
CTB STEP AT NAME TYPE
DOCMEM IMSPROD DOCLIB CTM.PROD.DOC
===========================================================================
DAYS 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 99 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
===========================================================================
IN DEPOSITS PREV
CONTROL
RESOURCE
PIPE
FROM TIME + DAYS UNTIL TIME + DAYS
DUE OUT TIME + DAYS PRIORITY SAC CONFIRM
TIME ZONE:
===========================================================================
OUT IMS-ACTIVE **** -
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
OUT Example 3
A group of jobs runs every day of the week except Saturday and Sunday. Several of the different jobs for the different days must not run in parallel, and job sequence must be maintained even in case of delay.
Figure 269 OUT Parameter – Example 3
JOB: EBDUPDT2 LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+----------------------------------------------------------------------------+
OVERLIB STAT CAL
SET VAR
CTB STEP AT NAME TYPE
DOCMEM EBDUPDT2 DOCLIB CTM.PROD.DOC
===========================================================================
DAYS DCAL
AND/OR
WDAYS 2,3,4,5,6 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 08 D-CAT
MINIMUM PDS
===========================================================================
IN DEPOSITS PREV
CONTROL
RESOURCE
PIPE
FROM TIME + DAYS UNTIL TIME + DAYS
DUE OUT TIME + DAYS PRIORITY SAC CONFIRM
===========================================================================
OUT DEPOSITS ODAT +
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
The job is submitted only if the prerequisite condition DEPOSITS of the previous schedule date exists. If the job finishes OK, the prerequisite condition DEPOSITS of the same schedule date is added. This, in turn, triggers the next job in the sequence.
OUT Example 4
The following example serves as a further explanation of the schedule date reference concept:
MEMNAME EBDUPDT2
MEMLIB EBD.PROD.JOB
DAYS 1,15,20
MONTHS 1- N 2- N 3- N 4- N 5- N 6- N 7- Y 8- N 9- Y 10- N 11- Y 12- N
OUT EBD-INPUT-READY **** -
Today is September 15. The date reference values resolved in this job are in mmdd date format:
Parent Topic |