Tuesday 5 June 2012

How long does a job wait in REQ Queue, before it comes RDY Queue?

Ca7 interview Questions And Answers, Mainframe Tolls  Questions And Answers

How long does a job wait in REQ Queue, before it comes RDY Queue?

  A Job has to wait in the CA-7 REQ(Request)Queue, until all of the requirements it has are satisfied. Requirements are like additional promises, which must be fulfilled, before a job is allowed to run. Requirements could be anything like , Completion of another job, Arrival(creation)of a file(Dataset), Submit Time, User Hold or a Negative Dependency. Its only when all the Requirements, of a job are fulfilled or posted, the job is brought to the Ready Queue(RDY). 

Check out this example. A Job X triggers Job Y, Job X completes everyday at 08:00AM. Job Y has 2 requirements—R1 and R2. Job R1 completes at 07:00AM and Job R2 completes at 09:00AM. The question is, when does Job Y kick-off? I would say, when Job X completes at 08:00AM, it triggers Job Y, so it brought to the Request Queue at 08:00AM. The Requirement R1 of Job Y is satisfied, but it will wait in Request Queue[REQ], till R2 is satisfied. When R2 completes at 09:00AM, both the requirements are satisfied, and Job Y will be brought to the Ready Queue[RDY].

No comments:

Post a Comment