View previous topic :: View next topic
|
Author |
Message |
jobin thomas
New User
Joined: 19 Aug 2008 Posts: 15 Location: Bangalore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
jobin thomas
New User
Joined: 19 Aug 2008 Posts: 15 Location: Bangalore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
jobin thomas
New User
Joined: 19 Aug 2008 Posts: 15 Location: Bangalore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Why a "dummy" job? Are you running BMP? Is anyone at your installation NOW doing this process? |
|
Back to top |
|
|
jobin thomas
New User
Joined: 19 Aug 2008 Posts: 15 Location: Bangalore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
jobin thomas
New User
Joined: 19 Aug 2008 Posts: 15 Location: Bangalore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
|