Multiple records to one - MQ

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
senthil_tcs
Premium Member
Premium Member
Posts: 40
Joined: Tue Oct 14, 2008 3:30 pm
Location: London

Multiple records to one - MQ

Post by senthil_tcs »

Hi,

We have a requirement to load set of records (Specific category code) as a single message into MQ. Can someone help me how to implement this? I know there is a option in XML transformer to do this and taking the key column whenever the value changes it will create a new XML message,so I am not sure how we can do the same for pipe delimited text file and load the same to MQ. Currently if I load the data to MQ if we have 20,000 records with the same category code it loads as 20,000 messages. So I believe some logic needs to be implemented before loading the data to MQ. Any help much appreciated.

Thanks,
Senthil
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You can use the vertical pivot of the enterprise pivot stage at V8 to convert multiple input rows into one output row for MQ.
padmavathi
Participant
Posts: 8
Joined: Tue Sep 01, 2009 6:16 am

Re: Multiple records to one - MQ

Post by padmavathi »

Hi

Set the MQ stage properties
MessagingWriteMode = "Create"
RecordCount=0
RowBufferCount=-1
Post Reply