|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Converting ebcdic data to Windows string |
« View previous topic :: View next topic » |
Author |
Message
|
tapak |
Posted: Tue Aug 15, 2006 1:06 pm Post subject: Converting ebcdic data to Windows string |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Aug 15, 2006 1:08 pm Post subject: |
|
|
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 |
|
 |
tapak |
Posted: Wed Aug 16, 2006 8:08 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Aug 16, 2006 9:58 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|