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 » Parse decimal to Packed Decimal with CWF msgset on Windows

Post new topic  Reply to topic
 Parse decimal to Packed Decimal with CWF msgset on Windows « View previous topic :: View next topic » 
Author Message
apiddi05
PostPosted: Fri Jun 03, 2011 1:31 am    Post subject: Parse decimal to Packed Decimal with CWF msgset on Windows Reply with quote

Newbie

Joined: 03 Jun 2011
Posts: 3
Location: Singapore

We are developing a message flow and a CWF message set to send message in EBCDIC to backend system, expecting few fields in packed decimal. We have a message set with few fields logical type 'decimal' and physical type 'packed decimal' with lenght 5. When flows deployed and ran to parse decimal 1234 to packed decimal, its parsing to '4f23010000'. Even after a long struggle, changing code pages and changing possible configurations of both flow and msg set it didn't resolved.
When we deploy the same flow in AIX to test, it went fine and got expected result '000001234f'.
Any idea on this behavior of Windows XP on this kind of parsing issue with MB flows?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Jun 03, 2011 4:02 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Look at the Endian settings on the system where is does not work.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 03, 2011 8:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

When importing the cobol copy book make sure you set the endianness correctly on the last of the 3 panels on the import wizard.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
apiddi05
PostPosted: Mon Jun 06, 2011 7:35 am    Post subject: Reply with quote

Newbie

Joined: 03 Jun 2011
Posts: 3
Location: Singapore

Dear smdavies99,

Endian settings didn't made any difference too. I deleted MQMD before parsing so that to use 'default packed decimal byte order'.
By the way I am using V7.0 toolkit.


Dear fjb_saper,
The most intrusting thing is we don't get Cobol copy book, i am just creating msg set manually for more than 330 fields

We deploy flow successfully into dev AIX...but Windows issue still persist.

Thanks,
Anand
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 06, 2011 7:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

apiddi05 wrote:
Endian settings didn't made any difference too


The problem in your original post is the number 1234 being interpreted with the wrong endinesness (if that's the word!). Why delete the MQMD? You need that to describe the byte order of the message - if you interpret a z/OS packed number using Windows defaults you'd get this effect.

apiddi05 wrote:
i am just creating msg set manually for more than 330 fields


Yikes. Why no copybook?

apiddi05 wrote:
We deploy flow successfully into dev AIX...but Windows issue still persist.


This absolutely proves the point. These 2 platforms use different byte orders, but AIX (IIRC) uses the same as z/OS.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Jun 06, 2011 5:40 pm    Post subject: Re: Parse decimal to Packed Decimal with CWF msgset on Windo Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

apiddi05 wrote:
We are developing a message flow and a CWF message set to send message in EBCDIC to backend system, expecting few fields in packed decimal. ... Even after a long struggle, changing code pages ...

For WMQ headers: CodedCharSetID is for character data; Encoding is for numeric data; Format is for distinguishing between the two.

For packed decimals, either the broker should set the desired output Encoding for the target system, or else the target system should enable convert for MQGET.
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 » Parse decimal to Packed Decimal with CWF msgset 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.