MQ Series Invoke DataStage Job.

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

gxhpainter
Premium Member
Premium Member
Posts: 28
Joined: Tue Jul 01, 2008 9:23 am

MQ Series Invoke DataStage Job.

Post by gxhpainter »

Which is best method to invoke a datastage, from MQ Series Queue when queue has got message?

Rgds,
Chakradhar.
gxhpainter
Premium Member
Premium Member
Posts: 28
Joined: Tue Jul 01, 2008 9:23 am

Re: MQ Series Invoke DataStage Job.

Post by gxhpainter »

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.
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

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.
gxhpainter
Premium Member
Premium Member
Posts: 28
Joined: Tue Jul 01, 2008 9:23 am

Post by gxhpainter »

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.
Thanks for the thought.

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.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

....been awhile since I've done it, but read up on "trigger queues"....... that is an MQ way to do it....

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

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
gxhpainter
Premium Member
Premium Member
Posts: 28
Joined: Tue Jul 01, 2008 9:23 am

Post by gxhpainter »

Well, i am working with Server Edition, Not Enterprise edition , we don't have MQ Connectors.

What Options for monitoring the Queue for new messages can be used ??

Rgds,
Chakradhar
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

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 Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
gxhpainter
Premium Member
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

Post by gxhpainter »

"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
gxhpainter
Premium Member
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

Post by gxhpainter »

"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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Set up your job as a service and set it to "always running".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gxhpainter
Premium Member
Premium Member
Posts: 28
Joined: Tue Jul 01, 2008 9:23 am

Setup job as Services

Post by gxhpainter »

Thanks Ray for the though.

Can you please get me more information on the services setup for DataStage Job.

Rgds,

Chakradhar.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes I could, but so can you. Search (here and IBM) for Information Services Director, SOA and - for older versions - RTI.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

WebSphere Information Services Director is typically abbreviated as WISD. All iterations of the product can be discussed in the "SOA Editions" forum.
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

...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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply