View previous topic :: View next topic
|
Author |
Message |
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
Dear all,
I have the below scenario where the jobs will be submitted by scheduler.
Two or more parallel jobs may be triggered and start running in parallel. all jobs will perform a check on the DB2 tables and multiple jobs will be put into wait state if a criteria is not matching in the DB2 table.
For the jobs matching the criteria will continue to execute and in the end it triggers the checks again which might insert this row in DB2 table. Once the row is inserted into DB2 table, I should notify all the jobs which are waiting for this condition.
What would be the better way to achieve the above scenario in COBOL?
Accept from console can put the 1st job in wait state.
ACCEPT from CONSOLE
I am stuck on how the 2nd job will identify the outstanding messages for a particular job to reply to?
Any other to implement this better also welcome.
Thank you so much.
Regards,
Yuge |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
This is a spectacularly BAD DESIGN. You need to come up with a method that does not require console replies -- the operators may have enough to do already without you adding to their workload. Furthermore, there is no easy way (other than using your job scheduler) for one job to be given information about another job. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You also can't have jobs sitting in intiators waiting for someting else to happen. Forget trying to work out how to do it this way. Use your Scheduler. JOBs have to wait to either be submitted on on the input queue. They can't wait in the system without impacting throughput of everything else running on the system. |
|
Back to top |
|
|
yugendran
New User
Joined: 14 Dec 2007 Posts: 51 Location: indore
|
|
|
|
Thanks for your replies..
This is a application which coordinates the batch jobs execution based on the resources available. It is developed 30 yrs ago.. If i have to change the design, then it would be expensive.
My hands are tied, I have to stick with this design... Right now, there is started task doing the coordination between the jobs and it is in assembler... I am just trying to remove the started task.. moving certain functions to DB2 and try to achieve the same in COBOL.
I got stuck where i need to pause the job until certain events to occur during the completion of the other jobs,,
Basically, I am looking cross job communication.. I am just reading on pause elements.. but sure if that can be used in COBOL..
IEAVAPE, IEAVRLS - Assembler services to pause a job and release the job from another..
Regards,
Yugendran |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Talk to Scheduling team, They will tell you more ways to achieve this and se t dependencies as you want , not advised to do it programmatically. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10891 Location: italy
|
|
|
|
topic locked... unfortunately it falls into the ...
[IN]famous category of topics not eligible for discussion
( How to design your own scheduling system. )
Read more at:
ibmmainframes.com/viewtopic.php?t=20820 |
|
Back to top |
|
|
|