CA 7 : How to schedule JOBB after nn minutes from JOBA completion time ?
search cancel

CA 7 : How to schedule JOBB after nn minutes from JOBA completion time ?

book

Article ID: 124519

calendar_today

Updated On:

Products

CA 7 Workload Automation

Issue/Introduction

In CA7 it is normal to define a Job Dependency so that if JOBA is Predecessor of JOBB, then JOBB is immediately scheduled by CA7 after JOBA ends. 

But, how is it possible to define in CA7 the following Job Dependency: 
  • JOBA is Predecessor of JOBB    
and
  • JOBB should be schedule 30 min after JOBA is ended


Environment

Z/OS and CA7 

Resolution

This definition can be done using the ARFSET feature. 
If JOBB should run 30 minutes after JOBA ended, it is necessary to define an ARFSET in JOBA with type=JC and no exceptions listed. 
The Response AW,TIME=30 can be issued and, when the time expires, JOBA will leave the request queue and then the requirement for JOBB will be satisfied. 

Here's the ARFSET example to wait 30 minutes and then demand in JOBB: 

---------------------------- ARF CONDITION EDIT -------------------------- 
FUNCTION: ADD (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS) DEFCT: 00 
TYPE: JC SYS EQ * SID EQ 0 RSTC GE 0 EM EQ * DEFID: 01 
FROM: 01011975 0001 TO: 12312074 2359 

JC, SC TST: STEP EQ * PROC EQ * PGM EQ * 
CC/ABENDS : CC EQ 0000 __ ??? GE 0000 __ ??? GE 0000 
??? GE 0000 __ ??? GE 0000 __ ??? GE 0000 
EC, EE, IS, LB, LE, LS TST: 
RO: GE DATE: TIME: AO: ? INT/ADJ 
RESPONSES: 
1: AW,TIME=0030                                                      <<<===== This example shows a 30 minutes wait 
2: AC,M=DEMAND,JOB=JOBB                                                     and then a DEMAND of JOBB. 
3: 
4: 
5: 
6: 
7: 
FINAL -- DISP : F CA-11?: N BYPGDG: N USAGE: PROCESS: CC: 
START : END: 
PROGRAM: AR32 MSG-INDX: 00 -- AR.3.1 -- yy.ddd / hh:mm:ss 
MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE 

It will be necessary to add the ARFSET name to the DB.1 Job screen. 

Also,  the RESPONSE ID on the AR.3 screen should point to a Userid that has authority to perform the DEMAND command for JOBB.