MQ Stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

MQ Stage

Post by rajudx »

Hi,

We need to push messages on one of the MQ queue.
We are planning to push messages through WebSphere_MQ_Connector stage and issues is message should be in XML format contain headr,detail records.
First we need to generate XML file then pass that XML into WebSphere_MQ_Connector stage? or directly we can write data in XML format on MQ stage?

Please let us know which option will be the best.

Thanks,
Raju.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

You are correct in your first assumption....the xml stage provides the ability to build a potentially complex xml document and then send it downstream.....for loading to a file, a database, or in your case, to MQ.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Post by rajudx »

Hi Eostic,

You mean we need to load data on MQ through XML stage?


(To read XML file) Folder stage---->XML Stage---->MQ

Above method will work ..also we are using datastage 8.5 and in this case we need only MQ clint software on datastage box right.
Thanks for your help.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
Below are the steps to connect to MQ on unix server:-
1.Yes yon need to install MQ client on the server where datastage is installed if MQ server is on Different box.
2. Add mq bin and lib paths to dsenv file.
3.rerun dsenv
. ./dsenv
4.Restart the DSEngine.

5.Now on MQ connector stage you need to provide below connections:-

QUEUE MANAGER NAME
CHANNEL NAME
CONNECTION NAME

You mean we need to load data on MQ through XML stage?

Why Folder stage is required,you can use seqential file as a source and define only one column with VARCHAR and target as MQ.
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Post by rajudx »

You mean we can send XML messages directly from sequential file stage to MQ server with varchar(20) ?

Can we directly place XML file on MQ server using below approach.

Extrenal_stage-->MQ STAGE .

Our requirement is need to send data from DB2 to queue in XML format. For this we are first creating XML files from DB2 database and next sending XML files to MQ server.
Please let me know is there any other approach to complete above requirement.

Raju
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Yes you can load xml into MQ using external stage.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

I think we're all getting confused, but I believe we're all talking about the same thing....

IF you have data in DB2 that is just "regular rows and columns" (not currently in XML format), and you want to read from DB2, generate XML and then put that XML into a queue, you can easily do this with (minimally, you may need more stages depending on the data and what you need to do with it) a DB2 Source, an XML Stage, and the MQ Connector. You do not have to first write the xml to disk --- the xml stage can delivery the whole document onto the link that directly feeds MQ.

Ernie
Ernie Ostic

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