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 » Pack Decimals in reverse order - WMB on Windows

Post new topic  Reply to topic
 Pack Decimals in reverse order - WMB on Windows « View previous topic :: View next topic » 
Author Message
shilpa.sabade
PostPosted: Mon Mar 10, 2014 7:07 am    Post subject: Pack Decimals in reverse order - WMB on Windows Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

Need your suggestions wrt to below issue. javascript:emoticon('')

Here are my Configurations :

XML to MRM conversion - WMB flow .
WMB8 is on Windows server , data is being sent to our MF system MQ queue v7.

When i read the data in WMB debug mode .. i see data is in correct order. But when output message is put to queue on z/os .. pack decimal fields are in reverse order.

I see CCSID and Encoding on output message are correct.

Encoding : 546 CCSID : 500
Format : 'MQSTR '
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Mar 10, 2014 7:13 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Intel stores numbers in reverse order from z hardware. Big-endian vs. little-endian.

Is the consuming application complaining (throwing an error)? Does the consuming application request data conversion?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
shilpa.sabade
PostPosted: Mon Mar 10, 2014 7:22 am    Post subject: Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

bruce2359 wrote:
Intel stores numbers in reverse order from z hardware. Big-endian vs. little-endian.

Is the consuming application complaining (throwing an error)? Does the consuming application request data conversion?


Yes consuming application is failing - as even the sign field is also in revese order - example : Hex code 5F180000 .. expecting 185 here .
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Mar 10, 2014 7:40 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

shilpa.sabade wrote:
bruce2359 wrote:
Intel stores numbers in reverse order from z hardware. Big-endian vs. little-endian.

Is the consuming application complaining (throwing an error)? Does the consuming application request data conversion?


Yes consuming application is failing - as even the sign field is also in revese order - example : Hex code 5F180000 .. expecting 185 here .

Does the consuming application request data conversion?

Have you read about data conversion, such as http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac12380_.htm
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.


Last edited by bruce2359 on Mon Mar 10, 2014 7:45 am; edited 1 time in total
Back to top
View user's profile Send private message
shilpa.sabade
PostPosted: Mon Mar 10, 2014 7:44 am    Post subject: Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

bruce2359 wrote:
shilpa.sabade wrote:
bruce2359 wrote:
Intel stores numbers in reverse order from z hardware. Big-endian vs. little-endian.

Is the consuming application complaining (throwing an error)? Does the consuming application request data conversion?


Yes consuming application is failing - as even the sign field is also in revese order - example : Hex code 5F180000 .. expecting 185 here .

Does the consuming application request data conversion?


Am sorry , if its dumb answer - I assume you are asking about MQGet - Its not . Application is not requesting data conversion.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Mar 10, 2014 7:46 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Have you read about data conversion, such as http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac12380_.htm
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Mar 10, 2014 8:57 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please can you supply the following info:
- the logical value of the packed decimal ( for bonus points, prove it by showing the output of a Trace node )
- the exact sequence of *bytes* that the MRM parser is writing. Make sure that you intercept this value on the output queue before it gets to the z/OS system.
- the exact sequence of bytes that you need.
- the definition of the MRM packed decimal field

Armed with that information, it should be possible to give accurate advice.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
shilpa.sabade
PostPosted: Mon Mar 10, 2014 9:10 am    Post subject: Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

Quote:
the logical value of the packed decimal ( for bonus points, prove it by showing the output of a Trace node )


Logical Value is : 185 .. I have mapping node in place for data conversion.. Trace did not show value being assigned.. but When i use debugger Message tree shows .. correct value ie 185

Quote:
the exact sequence of *bytes* that the MRM parser is writing. Make sure that you intercept this value on the output queue before it gets to the z/OS system.

5F180000 ( HEX)

Quote:
the exact sequence of bytes that you need. -

185F

Quote:
the definition of the MRM packed decimal field -

PIC S9(7) COMP-3
Back to top
View user's profile Send private message
shilpa.sabade
PostPosted: Mon Mar 10, 2014 9:20 am    Post subject: Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

I tried with CCSID- 500 and Encoding - 785 . am getting correct value now.

Thank you kimbert and bruce2359 for your advise.
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 » Pack Decimals in reverse order - WMB on Windows
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.