I've got an MRM message going through a message flow. I'm doing some validation and at certain points in the flow I want to send the message to an error queue and I want to prefix the message with a error header, much like the DLH.
I can define another MRM message with the header fields plus all the fields from the original message but this could be a pain, especially if I have lots of messages to do.
Is there any way I can set up my header and then append the main message whatever it contains ?
_________________ Tony Reddiough
Certified MQSeries Consultant
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
You could build your new header which is mapped to an MRM described structure and then piggy back the original data by setting it as a blob ... for example:
SET OutputRoot.MRM.MyField1 = '...';
SET OutputRoot.MRM.MyField2 = '...';
SET OutputRoot.BLOB.BLOB = BITSTREAM(InputRoot.MRM);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum