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
 

 

Trigger a job from an MPP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
jobin thomas

New User


Joined: 19 Aug 2008
Posts: 15
Location: Bangalore

PostPosted: Wed Jan 14, 2009 12:03 pm    Post subject: Trigger a job from an MPP
Reply with quote

Hi,

I have a requirement to trigger a job when there are no more messages queued to an MPP. Can you please tell me if there is a way to trigger a job when no more messages are queued to an MPP.

This can also be achieved by having a dataset triggered job and the dataset be created by an MPP or a COBOL sub program of the same MPP. But is it possible to have a dataset created from an MPP?
Back to top
View user's profile Send private message

Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Jan 14, 2009 6:40 pm    Post subject:
Reply with quote

Does your installation have a region set up for your scheduling package - like ca-7? If it does, then you can do it. I have done it many times.
Back to top
View user's profile Send private message
jobin thomas

New User


Joined: 19 Aug 2008
Posts: 15
Location: Bangalore

PostPosted: Thu Jan 15, 2009 11:48 am    Post subject:
Reply with quote

Yes, we have CA7 installed and using CA7 only batch jobs are scheduled. Can you please tell how can we trigger a job from an MPP using CA7?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Jan 15, 2009 6:23 pm    Post subject:
Reply with quote

Are you running BMP? You will need to message switch to the CA-7 region - check to make sure that you have those set up. If you do, then someone else is probably already doing it.
Back to top
View user's profile Send private message
jobin thomas

New User


Joined: 19 Aug 2008
Posts: 15
Location: Bangalore

PostPosted: Thu Jan 15, 2009 6:42 pm    Post subject:
Reply with quote

Hi Sandy,
Thanks for the reply....The job (Job A) that will be triggered by an MPP will be a dummy job and this will further trigger another job stream.

The scenario is that when one set of processing is completed by the MPP, it should trigger a dummy job which will then trigger another job stream.

So the job A would only be a dummy job.

How do we do a message switch to CA7 region and how can we ensure that we have the required setup?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Jan 15, 2009 6:57 pm    Post subject:
Reply with quote

Why a "dummy" job? Are you running BMP? Is anyone at your installation NOW doing this process?
Back to top
View user's profile Send private message
jobin thomas

New User


Joined: 19 Aug 2008
Posts: 15
Location: Bangalore

PostPosted: Thu Jan 15, 2009 11:16 pm    Post subject:
Reply with quote

No we are not running BMP. Dummy job is required as we are trying to automate a manual process.
There's an MPP which transmits message over a link. When the message transmission is complete, one set of batch process has to start. Presently the set of batch process is started manually after ensuring that the message transmission is complete. So we want to automate this process, having that MPP itself trigger the set of batch jobs when the message transmission is complete. As the first job in the batch process would be a dummy, signalling the start of process, in my previous reply i mentioned, MPP would trigger a dummy Job.
Regarding your 3rd question - I am not aware if some one is doing this process in our installation. How do we check this?
Please let me know how do we a message switch to CA7 region and trigger a job.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Jan 15, 2009 11:29 pm    Post subject:
Reply with quote

OK - so you are not running BMP. At this time, how do you know when your message transmission is complete?
Quote:
having that MPP itself trigger the set of batch jobs when the message transmission is complete.


What are you checking?
Back to top
View user's profile Send private message
jobin thomas

New User


Joined: 19 Aug 2008
Posts: 15
Location: Bangalore

PostPosted: Thu Jan 15, 2009 11:45 pm    Post subject:
Reply with quote

within the MPP we can check using counters that are maintained in the Database. There are couple of counters - 1 for maintaining the count of msgs queued and the other for maintaining the count of msgs transmitted....so if the difference of both these counters is zero, this implies all the messages have been transmitted.

So i am planning to check for the difference for these counter value and if its zero trigger the job
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Jan 16, 2009 1:36 am    Post subject:
Reply with quote

Quote:
so if the difference of both these counters is zero, this implies all the messages have been transmitted.


Can you please post that code here? Also, the exit and/or end of program statement?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm
No new posts Issue in trigger vickey_dw DB2 3 Wed Feb 10, 2016 5:41 pm
No new posts Trigger a mainframe job by mail Praveen Thenraj IBM Tools 8 Wed Jan 13, 2016 12:05 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm
No new posts Can a DB2 insert trigger execution of... TS70363 DB2 6 Tue Nov 24, 2015 10:44 pm


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