|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
For reversing the order of packed decimal |
« View previous topic :: View next topic » |
Author |
Message
|
Vakku |
Posted: Mon Mar 02, 2009 2:09 am Post subject: For reversing the order of packed decimal |
|
|
Novice
Joined: 13 Oct 2008 Posts: 20 Location: California
|
Hi,
I'm writting a Fixed width message to a File, where some of the Numeric elements in the message need to be converted into Packed decimal format. In the message set, I'm mentioning these elements as Packed decimal and it is getting converted.
But I'm getting lE# as the converted value from the broker; while the existing JAVA application gives #El for the same input, which is exactly the reverse order. What can be done to rectify this? I tried setting the Default Packed Decimal Byte Order* as LittleEndian, but not coming. Any help in this regard would be extremely useful.
Regards,
Vakku |
|
Back to top |
|
 |
kimbert |
Posted: Mon Mar 02, 2009 4:24 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Which physical format type ( TDS or CWF )?
What happens if you set it to 'Big Endian' ?
btw - Packed Decimal is a binary format. Please describe the bytes in the message, not the characters which your viewer happens to be displaying. |
|
Back to top |
|
 |
Vakku |
Posted: Mon Mar 02, 2009 5:10 am Post subject: |
|
|
Novice
Joined: 13 Oct 2008 Posts: 20 Location: California
|
Thanks for the response. The message set is TDS.The byte format of packed decimal is coming as lE#SOH in Notepad++ editor
Since it is coming in the reverse order of bytes, I tried with Little Endian as the format itself will take care of Least Significant Bit as the first. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 02, 2009 5:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Vakku wrote: |
The byte format of packed decimal is coming as lE#SOH in Notepad++ editor |
That's very nice, but still a display format. What is the actual hexadecimal, as kimbert has asked? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|