Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8188
Location: East Dubuque, Illinois, USA

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: 7314

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: 1818
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: 10352
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 Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us