I only need SourceSystem.DocumentID and ZFI_MESSAGE_DT.MSGSTATUS output as follows:
SPOS24232004070753
This is what I attempted without success using a compute node:
SET OutputRoot=InputBody.(XML.Element)SourceSystem.DocumentID || InputBody.(XML.Element)ZFI_MESSAGE_DT.MSGSTATUS;
SET OutputRoot.MQMD.Format = 'MQSTR ';
USING MQSIv2.1 _________________ Scott A. Boucher
Database Administartor
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
Try something like this:
Code:
SET OutputRoot.MRM.DocumentID_MSGSTATUS = InputBody.IPA_ZFI_COPA_ACKNOWLEDGEMENT01.Header.SourceSystem.DocumentID ||
InputBody.IPA_ZFI_COPA_ACKNOWLEDGEMENT01.Body.ZFI_MESSAGE_DT.MSGSTATUS;
Quote:
I only need SourceSystem.DocumentID and ZFI_MESSAGE_DT.MSGSTATUS output as follows:
SPOS24232004070753
To produce that result, you'll need to create a CWF message that has a single element defined. Additionally, you'll have to modify the output properties to reflect the change in the message format from XML to CWF).
SET OutputRoot.BLOB.BLOB=CAST(InputBody.(XML.Element)SourceSystem.DocumentID || InputBody.(XML.Element)ZFI_MESSAGE_DT.MSGSTATUS as BLOB CCSID InputRoot.Properties.CodedCharSetId);
--and do the rest of your MQMD settings
And then add an RCD node to convert from XML to BLOB message domains. _________________ I am *not* the model of the modern major general.
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