Author |
Message
|
petervh |
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?). |
|
Back to top |
|
 |
ak |
Posted: Wed Sep 06, 2006 2:46 am Post subject: |
|
|
Apprentice
Joined: 07 Aug 2006 Posts: 48 Location: England
|
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 . |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 06, 2006 3:22 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Would this data be in the TLOG format, by any chance? |
|
Back to top |
|
 |
petervh |
Posted: Wed Sep 06, 2006 3:28 am Post subject: |
|
|
Apprentice
Joined: 15 Jun 2006 Posts: 31
|
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 06, 2006 3:56 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Contact IBM Dublin - they have a pre-built solution for parsing TLOG data. |
|
Back to top |
|
 |
|