The following are examples of the IN parameter.
IN Example 1
Schedule the job that produces the salary statistics report for top management when the set of jobs that calculates the salaries finishes OK.
When the set of jobs that calculates the salaries finishes OK, it creates the prerequisite condition SALARY-OK.
The report is produced twice a month, for the 1st and for the 15th. The report for the 15th is produced only if the prerequisite condition for the 15th, SALARY-OK, exists, signifying that the salary job for the 15th ended OK. The existence of the prerequisite condition for the 1st, SALARY-OK, does not cause submission of the report for the 15th.
Figure 229 IN Parameter – Example 1
JOB: EBDRPT1A LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+----------------------------------------------------------------------------+
APPL EBD GROUP EBD-PRODUCTION
DESC EBD PRODUCTION SALARY REPORTS
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM EBDRPT1A DOCLIB CTM.PROD.DOC
============================================================================
SCHEDULE RBC
RELATIONSHIP (AND/OR) O
DAYS 0.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 N MAXWAIT 06 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
============================================================================
IN SALARY-OK ODAT
CONTROL
RESOURCE
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
IN Example 2
This example is similar to Example 1. A monthly total report must be produced based on data from the last two runs, and the job must run when IMS is active.
Figure 230 IN Parameter – Example 2
JOB: EBDRPT1A LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
DESC EBD PRODUCTION REPORTS
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM EBDRPT1A DOCLIB CTM.PROD.DOC
===========================================================================
SCHEDULE RBC
RELATIONSHIP (AND/OR) O
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 06 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
===========================================================================
IN SALARY-OK ODAT SALARY-OK PREV
IMS-ACTIVE STAT
CONTROL
RESOURCE
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
Prerequisite condition IMS-ACTIVE is based on a static condition that exists only when IMS is active. IMS itself can be monitored by Control-M. When IMS is not active, Control-M deletes the prerequisite condition IMS-ACTIVE, thus preventing abends of jobs that depend on IMS.
IN Example 3
Assume that there is a set of jobs that runs every day of the week except Saturday and Sunday. It is very important that some of the jobs scheduled for the different days of the week do not run simultaneously. The order of these jobs must be maintained even if there are delays.
Figure 231 IN Parameter – Example 3
JOB: EBDUPDT2 LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
APPL EBD GROUP EBD-PRODUCTION
DESC EBD PRODUCTION UPDATE
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
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
DEFINITION ACTIVE FROM UNTIL
============================================================================
IN DEPOSITS PREV
CONTROL
RESOURCE
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
The job is submitted only if the prerequisite condition DEPOSITS of the previous schedule date exists. The prerequisite condition DEPOSITS is created only after the set of jobs called DEPOSITS finishes.
IN Example 4
This report must run after the database has been updated by either of two jobs, EBDUPDT2 or EBDUPDT3, but only if IMS is active.
Figure 232 IN Parameter – Example 4
JOB: EBDRPT6C LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
DESC EBD PRODUCTION DATABASE REPORTS
OVERLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM EBDRPT6C 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 04 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
============================================================================
IN |EBD-EBDUPDT2-ENDED ODAT |EBD-EBDUPDT3-ENDED ODAT
IMS-ACTIVE STAT
CONTROL
RESOURCE
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
This job is submitted only if IMS is active and if job EBDUPDT2 (or EBDUPDT3) finished executing.
IN Example 5
Use of parentheses in the IN conditions is demonstrated in the following example. Job EDBCLEAN requires that two conditions be satisfied before submission. The first must be either condition CICSP1-IS-UP or condition CICSP2-IS-UP. The second must be either condition OPR-CLEAN-REQUEST or condition SYS-CLEAN-REQUEST.
Figure 233 IN Parameter – Example 5
JOB: EBDCLEAN LIB CTM.PROD.SCHEDULE TABLE: EBDPROD
COMMAND ===> SCROLL===> CRSR
+-----------------------------------------------------------------------------+
OVERLIB CTM.OVER.JOBLIB STAT CAL
SCHENV SYSTEM ID NJE NODE
SET VAR
CTB STEP AT NAME TYPE
DOCMEM EBDCLEAN DOCLIB
============================================================================
DAYS ALL 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 N MAXWAIT 00 D-CAT
MINIMUM PDS
DEFINITION ACTIVE FROM UNTIL
============================================================================
IN (CICSP1-IS-UP 0101 |CICSP2-IS-UP) 0101
(OPR-CLEAN-REQUEST ODAT |SYS-CLEAN-REQUEST) ODAT
CONTROL
RESOURCE INIT 0001 CART 0001
COMMANDS: EDIT, DOC, PLAN, JOBSTAT 11.17.00
IN Example 6
The following example provides a further explanation of the concept of the schedule date reference:
Figure 234 IN Parameter – Example 6
MEMNAME EBDRPT6D
MEMLIB EBD.PROD.JOB
DAYS 01,15,20
MONTHS 1- N 2- N 3- N 4- N 5- N 6- N 7- Y 8- N 9- Y 10- N 11- N 12- N
IN EBD-REPORTS-READY ****
Today is the 15th September. The date reference values resolved in this job are written in mmdd date format:
Table 190 Date Reference Values – Example 6
Subparameter |
Value |
---|---|
ODAT |
0915 |
PREV |
0901 |
**** |
Any date reference. |
Parent Topic |