IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job to wait and continue based on reply


IBM Mainframe Forums -> COBOL Programming
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
yugendran

New User


Joined: 14 Dec 2007
Posts: 51
Location: indore

PostPosted: Wed Oct 05, 2016 1:46 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 05, 2016 3:27 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Oct 05, 2016 3:35 pm
Reply with quote

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
View user's profile Send private message
yugendran

New User


Joined: 14 Dec 2007
Posts: 51
Location: indore

PostPosted: Wed Oct 05, 2016 7:26 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Wed Oct 05, 2016 10:24 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 05, 2016 10:49 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Wait for job rc CLIST & REXX 10
No new posts To search DB2 table based on Conditio... DB2 1
This topic is locked: you cannot edit posts or make replies. Merge 2 input files based on the reco... JCL & VSAM 2
No new posts Split large FB file based on Key coun... DFSORT/ICETOOL 4
No new posts Mass JCL release via IDZ tool(eclipse... CA Products 1
Search our Forums:

Back to Top