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 » IBM MQ Java / JMS » Converting ebcdic data to Windows string

Post new topic  Reply to topic
 Converting ebcdic data to Windows string « View previous topic :: View next topic » 
Author Message
tapak
PostPosted: Tue Aug 15, 2006 1:06 pm    Post subject: Converting ebcdic data to Windows string Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

I am tryint to get ebcdic data from mainframe queue by doing a client connect from a Windows java program . I am getting the following exception .

What should be done to use the readUTF method to read the data .

I am using GMO_CONVERT in my get and specifying the following character set and encoding for UTF .
Any idea ,what I am missing.

<CCSID>1208</CCSID>
<Encoding>546</Encoding>

java.io.EOFException

at java.io.DataInputStream.readFully(DataInputStream.java:268)

at java.io.DataInputStream.readUTF(DataInputStream.java:639)

at java.io.DataInputStream.readUTF(DataInputStream.java:610)

at com.ibm.mq.MQMessage.readUTF(MQMessage.java:779)

at com.bs.mq.MQJavaProcessor.getMessage(MQJavaProcessor.java:227)
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 15, 2006 1:08 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you want to get EBCDIC data, or UTF data?

Make up your mind.

Also, search here for "readUTF", and find out why you don't want to use it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tapak
PostPosted: Wed Aug 16, 2006 8:08 am    Post subject: Reply with quote

Centurion

Joined: 26 Oct 2005
Posts: 149
Location: Hartford,CT

Thanks for your inputs. I changed from readUTF to use readString . It works fine for m. Plus it worked even without using GMO_CONVERT . Does readString automatically convert ebcdic to ascii ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 16, 2006 9:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

readString does tend to convert, yes.
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Java / JMS » Converting ebcdic data to Windows string
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.