Posted: Wed Sep 06, 2006 12:52 am Post subject: Binary data conversin in Broker
Apprentice
Joined: 15 Jun 2006 Posts: 31
Can someone provide some assistance? I am receiving fixed-length, 64-byte, binary Point of Sale messages from a store and need to map this data into an XML structure so that I can write records to a database as part of a message flow. I have defined a msgset with a CWF format so that I can parse the incoming msg into its individual fields. The problem is that the binary data is apparently in BCD format - when I try to read the message in an MQInput node I get a parsing error. When I use another binary file that represents EBCDIC data it parses successfully. Can I assume from this that the data is not correct (maybe a bit combination is "irritating" the MRM parser?).
Not sure if the broker can handle BCD data! You might need to convert it to EBCDIC first. Read it off the queue as a BLOB -i.e. no message set/type defined on the MQInput node. Pass this a java compute node or java routine to convert it and then use an RCD node with your message set /type set .
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