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

Trigger a job from an MPP


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts How to define transaction that trigge... CICS 3
No new posts Trigger mainframe job , when file pla... All Other Mainframe Topics 2
No new posts trigger enter key automatically call ... CICS 17
No new posts Application not run by time HH:MM tri... IBM Tools 1
No new posts How to track incoming input files tha... JCL & VSAM 6
Search our Forums:

Back to Top