Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Job to wait and continue based on reply

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Job to wait and continue based on reply
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: 7913
Location: Bellevue, IA

PostPosted: Wed Oct 05, 2016 3:27 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7234

PostPosted: Wed Oct 05, 2016 3:35 pm    Post subject: Reply to: Job to wait and continue based on reply
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    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Wed Oct 05, 2016 10:24 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Oct 05, 2016 10:49 pm    Post subject:
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:
http://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.    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 1 Fri Dec 09, 2016 4:40 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts how to split records based on specifi... Venkata Ramayya DFSORT/ICETOOL 6 Wed Sep 28, 2016 3:20 am
No new posts Not enough virtual memory is availabl... Vinay Pushpala IBM Tools 16 Tue Sep 13, 2016 4:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us