MQ Series Invoke DataStage Job.
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
MQ Series Invoke DataStage Job.
Which is best method to invoke a datastage, from MQ Series Queue when queue has got message?
Rgds,
Chakradhar.
Rgds,
Chakradhar.
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
Re: MQ Series Invoke DataStage Job.
MQ Series Queue needs to invoke DatStage Stage Job on arrival on any message in the Queue.
Is it good plan to have shell script to be used?
Any body any thoughts??
Rgds,
Chakradhar.
Is it good plan to have shell script to be used?
Any body any thoughts??
Rgds,
Chakradhar.
-
- Charter Member
- Posts: 299
- Joined: Wed Nov 13, 2002 5:38 pm
- Location: USA
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
Thanks for the thought.throbinson wrote:Using a shell script is not a good plan. there is no need.
Use the MQ Stage. Why use a shell script? Did you need this to be realtime? No problem. Read the documentation.
i have couple of question added to the above.
1. Which are options to be used in MQ stage to read the message as soon as it is populated in queue by 3rd party application??
2. Can you let me know, Name of PDF file, Which section which is mentioned that?
3. We can invoke other job thru Job Control of the job which has got MQ Stage or do we have better option to do the same?
Pl suggest..
Thanks again and in advance.
Chakradhar.
....been awhile since I've done it, but read up on "trigger queues"....... that is an MQ way to do it....
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Charter Member
- Posts: 299
- Joined: Wed Nov 13, 2002 5:38 pm
- Location: USA
Maybe I'm mis-reading the requirement. I've not done MQ in a while. Why not define a job and have it constantly run waiting for a message from the queue? As soon as a message arrives, it will be delivered to the job and processed. When you want to stop the job, schedule another DataStage job to insert a "stop" message into that same queue that is of a MsgType that triggers the first DataStage job to stop.
mq.pdf in the docs sub directory
mq.pdf in the docs sub directory
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
throbinson is correct...you don't need MQConnector....Server and MQStage can do this also......just having a job waiting endlessly for a message to arrive. Will work perfectly. The only drawback is if the arrival is fairly rare....like once a day or less frequent.....no sense in having the job sit there waiting all that time....... Then it makes sense to have MQ kick off a script that starts a DS job to get the messsages or do anything.
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
how do i make a job wait endlessy for a message to arrive MQ
"just having a job waiting endlessly for a message to arrive. "
How do we do that that in DataStage verion 8 , server edition??
That is the question?
Thanks,
Chakradhar
How do we do that that in DataStage verion 8 , server edition??
That is the question?
Thanks,
Chakradhar
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
how do i make a job wait endlessy for a message to arrive MQ
"just having a job waiting endlessly for a message to arrive. "
How do we do that that in DataStage verion 8 , server edition??
That is the question?
Thanks,
Chakradhar
How do we do that that in DataStage verion 8 , server edition??
That is the question?
Thanks,
Chakradhar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 28
- Joined: Tue Jul 01, 2008 9:23 am
Setup job as Services
Thanks Ray for the though.
Can you please get me more information on the services setup for DataStage Job.
Rgds,
Chakradhar.
Can you please get me more information on the services setup for DataStage Job.
Rgds,
Chakradhar.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
...this is not an ISD scenario.....
...the MQ Plugin, by default, will "wait endlessly" when used as a Source in your Server (or EE) Job. ...in fact, be careful --- when testing I always use a timeout value of say, 30 seconds, rowlimit of 10, and put in a message type identifier of 9999899 (or some other equally long and unlikely value for a Message Type in the MQ Header) so that I can control the stopping myself. Default is "wait indefinitely".
Ernie
...the MQ Plugin, by default, will "wait endlessly" when used as a Source in your Server (or EE) Job. ...in fact, be careful --- when testing I always use a timeout value of say, 30 seconds, rowlimit of 10, and put in a message type identifier of 9999899 (or some other equally long and unlikely value for a Message Type in the MQ Header) so that I can control the stopping myself. Default is "wait indefinitely".
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>