Previous Topic: Displaying the TriggersNext Topic: Resolving the Revised Schedule


Scheduling a Job Differently

Now assume that we receive instructions to schedule NAMEA on Mondays in addition to Tuesdays and Thursdays, to run it every Monday even if Monday is a holiday, and to run NAMED after NAMEA on Mondays only. How do we go about this scheduling?

To begin with, we do not need to change the way we defined NAMEA on the CPU Job Definition screen in the last chapter. The definition of NAMEA stays the same, regardless of when it runs and what jobs run after it. (In fact, we cannot add another definition for NAMEA, because there is only one job by that name.)

What we must do is to add another schedule for NAMEA. To keep this schedule separate from the original schedule, we are going to give it a different schedule ID. Previously, we used the number 1 when we scheduled NAMEA for Tuesdays and Thursdays. Now we are going to use the schedule ID 2 to schedule NAMEA on Mondays. To change the record, we must return to the CPU Job Scheduling screen and must change the NAMEA scheduling record.

Return to the CPU Job Scheduling screen now by typing DB.2.1 on the top line of your screen. When you press Enter, this screen is displayed:

------------------------- CA-7 CPU JOB SCHEDULING --------------------------- FUNCTION: (CLEAR,DELETE,EDIT,FE,FETCH,REPL,RESOLV,SAVE) JOB: JOBL: SCAL: (DEFAULT SCAL ID FOR ADDS) SCHID-COUNT: 000 PROGRAM: SM71 MSG-INDX: 00 -- DB.2.1 -- yy.ddd / hh:mm:ss MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE

What we must do now is fetch (get) the NAMEA scheduling record and add to it. To get the record, fill in these two fields:

FUNCTION:

Enter FE to fetch the scheduling record and go into edit mode.

JOB:

Enter NAMEA to identify the job you want to edit.

When you press Enter, the CPU Job Scheduling edit screen is automatically displayed with the scheduling criteria we defined the scheduling criteria.

------------------ CA-7 CPU JOB SCHEDULING PARAMETER EDIT ------------------ FUNCTION: LIST (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS) JOB: NAMEA SCHID: 1 SCAL: ROLL: F INDEX: 000 DOTM LDTM SBTM ---------------------REPEAT---------------------- 2100 0030 INTERVAL: TYPE: COUNT: STOP: __ __ DAILY __ X __ WEEKLY SUN: MON: TUE: X WED: THU: X FRI: SAT: __ __ MONTHLY JAN: FEB: MAR: APR: MAY: JUN: JUL: AUG: SEP: OCT: NOV: DEC: WEEK: DAY-OF-WEEK: RDAY: __ __ ANNUAL DAY: DEFAULT SCAL: 5D __ __ SYMETRIC START: SPAN: SCHID-COUNT: 001 PROGRAM: SM72 MSG-INDX: 00 -- DB.2.1-E -- yy.ddd / hh:mm:ss MESSAGE: LIST FUNCTION SUCCESSFUL

We change this screen to tell CA WA CA 7 Edition to run NAMEA on Mondays under schedule ID 2. To do this adjustment, change the following fields:

FUNCTION:

Change LIST to ADD.

SCHID:

Change 1 to 2.

ROLL:

Change F to N. This change tells CA WA CA 7 Edition to run NAMEA on Mondays even if Monday is a holiday.

LDTM

Change 0030 to 0040 because NAMEA takes a little longer to run on Mondays.

WEEKLY

Leave the X in this field but add an X after Monday and erase the Xs after TUE and THU.

Press Enter and watch for the ADD FUNCTION SUCCESSFUL message at the bottom of the screen:

------------------ CA-7 CPU JOB SCHEDULING PARAMETER EDIT ------------------ FUNCTION: ADD (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS) JOB: NAMEA SCHID: 2 SCAL: ROLL: N INDEX: 000 DOTM LDTM SBTM ---------------------REPEAT---------------------- 2100 0040 INTERVAL: TYPE: COUNT: STOP: __ __ DAILY __ X __ WEEKLY SUN: MON: X TUE: WED: THU: FRI: SAT: __ __ MONTHLY JAN: FEB: MAR: APR: MAY: JUN: JUL: AUG: SEP: OCT: NOV: DEC: WEEK: DAY-OF-WEEK: RDAY: __ __ ANNUAL DAY: DEFAULT SCAL: 5D __ __ SYMETRIC START: SPAN: SCHID-COUNT: 002 PROGRAM: SM72 MSG-INDX: 00 -- DB.2.1-E -- yy.ddd / hh:mm:ss MESSAGE: ADD FUNCTION SUCCESSFUL

Now the NAMEA scheduling record is expanded to include another scheduling variation. To replace the original scheduling record with the expanded record, enter SR (for save/replace) after FUNCTION and press Enter. This action returns you to the CPU Job Scheduling screen:

------------------------- CA-7 CPU JOB SCHEDULING --------------------------- FUNCTION: REPL (CLEAR,DELETE,EDIT,FE,FETCH,REPL,RESOLV,SAVE) JOB: NAMEA JOBL: SCAL: 5D (DEFAULT SCAL ID FOR ADDS) SCHID-COUNT: 002 PROGRAM: SM71 MSG-INDX: 00 -- DB.2.1 -- yy.ddd / hh:mm:ss MESSAGE: REPL FUNCTION SUCCESSFUL SCHEDULE MUST BE RESOLVED

See how the schedule ID count is now set to 2? This count indicates that NAMEA has two scheduling variations.

More information:

Defining the Scheduling Criteria