AnsweredAssumed Answered

CA7 - multiple jobs running with same requirement

Question asked by SAUL SUAREZ DEL REAL on May 23, 2016
Latest reply on May 31, 2016 by Marysue

I have this situation in CA7. JOBA runs at 00:01. JOBB is dataset triggered approximately at 9:00 (could be at a later time) and has JOBA as requirement, since the last time. These jobs run everyday and everything is fine, UNTIL a second file is received and JOBB is triggered again. This second file is not received very often. The second JOBB will wait in the REQ Queue until another JOBA runs. We need this second JOBB to execute when the second file is received. The file is sent by a client so it is always the same schid. If the file had different schids then I would know what to do but we cannot ask the client to do that.

I have thought of creating a batch job that will be dsn triggered by the same file and pull JOBB from the REQ Queue, if any. If JOBB is in the ACT or RDY queue then no job will be pulled. There will be a WAIT step of a minute or so to make sure the first JOBB starts executing and then the same batch job will create a POST statement to post JOBB. When a second file is received, the batch job will run and this time it will find JOBB in the REQ queue and will post it. If I use this batch job and if for any reason JOBA is delayed too many hours and runs after 9am then we run into the possibility of releasing the first JOBB ahead of time.

Is there another way to post the second JOBB? The file may arrive at any time.

Thanks.

 

Saul

Outcomes