Posted: Wed Apr 21, 2004 1:21 am Post subject: How to convert Input String Message to an XML
Newbie
Joined: 06 Apr 2004 Posts: 8
I need to convert an input fixed length string message to an output XML message. Nodes Used-
MQInput:
MessageDomain=BLOB
MessageFormat=CWF
Message put in the input queue is a fixed length string.
Compute:
Declare InMsg CHAR;
SET InMsg=???? - How do I set the input message in a char variable
Further substring the InMsg in order to create the output XML message-
OutputRoot.TestMessage = SUBSTRING(InMsg from 0 for 10);
...
The Best way to Handle a Input Fixed Lenght Message is to create a MRM CWF rather than storing the entire message in to a CHAR variable and using SUBSTRING on that.
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