ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » For reversing the order of packed decimal

Post new topic  Reply to topic
 For reversing the order of packed decimal « View previous topic :: View next topic » 
Author Message
Vakku
PostPosted: Mon Mar 02, 2009 2:09 am    Post subject: For reversing the order of packed decimal Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon Mar 02, 2009 4:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Vakku
PostPosted: Mon Mar 02, 2009 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Mar 02, 2009 5:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » For reversing the order of packed decimal
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.