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 IndexWebSphere Message Broker Supportpacking and data conversion from Ascii to EBCDIC

Post new topicReply to topic
packing and data conversion from Ascii to EBCDIC View previous topic :: View next topic
Author Message
ramki
PostPosted: Thu Oct 04, 2001 2:21 pm Post subject: Reply with quote

Apprentice

Joined: 25 Sep 2001
Posts: 28

hi
Can you help me with this? One more question from me...........
I did the test for the packing and EBCDIC conversion.
My message is going from NT(ASCII format) to MQSI first , gets the packing done there and then goes to Mainframe(EBCDIC). Here I am doing the conversion in the Queue2file(i,e doing the conversion when doing the get from queue on mainframe). I viewed the result in HEX format on Mainframe and noted it. The result is: 0C 68 E5 F4 12 71 A7 E5 F4 12
I repeated the test with packing and conversion in MQSI i.e set the convert option to yes and CCSID=037 and no conversion in the queue2file. This time I got a different message in the queue on MF. I got
0C 80 56 34 12 90 78 56 34 12.

My understanding is, in both these cases, our aim is same. In the first case we wanted MQSI to handle JUST the packin and let the conversion be done in thewhile doing the get from queue and in the second case We let MQSI handle both Packing and conversion.
note:In the test case of the messageset I used the float as input and packeddecimal as output and the conversion is from Ascii to EBCIDC,as it is going from NT to Mainframe. I used example "1234567890123456789" for input.
Please help me understand why we are getting a different message values. I appreciate you help. Thanks in advance!!!
Regards,
Ramki R
Back to top
View user's profile Send private message Yahoo Messenger
EddieA
PostPosted: Thu Oct 04, 2001 3:12 pm Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Looking at the messages I think I can work out what's happened. Well most of it anyway.

You started with a ASCII string 1234567890123456789 which you wanted converting into packed decimal. That packed decimal, on the mainframe, would be X'12 34 56 78 90 12 34 56 78 9C'.

Looking at the 2 outputs, MQSI did a conversion to PD, but what it actually put out was X'12 34 56 78 90 12 34 56 80 0C'. You may have hit an inbuilt limit or something. Not sure.

Now, to what you see.

The first message has been converted from ASCII to EBCDIC. The problem here is that the field is packed decimal and as such should not be converted. You only convert 'printable', non-hex characters. This is the conversion that uses CCSID.

The second message is almost right. The only thing wrong is that you didn't set the Encoding value to say it was mainframe format you wanted. That's why it's reversed.

So all you need do is set the Encoding to the correct value in MQSI.

BTW. Did you see my reply in your other thread on this subject. It talks about CCSID, Encoding, and converting.

Cheers.

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supportpacking and data conversion from Ascii to EBCDIC
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.