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 » General IBM MQ Support » Extra Line Feed (0x0A) at the end of message

Post new topic  Reply to topic
 Extra Line Feed (0x0A) at the end of message « View previous topic :: View next topic » 
Author Message
any2xml
PostPosted: Wed Jun 23, 2004 11:27 am    Post subject: Extra Line Feed (0x0A) at the end of message Reply with quote

Apprentice

Joined: 18 May 2004
Posts: 42

My perl program running on zSeries Linux uses MQSeries module to put a message to a remote MQ server running on OS/390.

At the end of each message there is a 0x0A even though during my debugging I dont see any such thing.

In fact at the end of the message is a 0x03 (ETX) as requested by the other party. It seems that the ETX is converted to 0x0A.

I use MQFMT_STRING as the data type. Should I use anything else to prevent this? I am not even sure where this is happening - at the source or at the destination.

Any pointers? Thanks
_________________
A Perl Hacker
http://www.goreliance.com
http://www.any2xml.com
Back to top
View user's profile Send private message
any2xml
PostPosted: Sat Jun 26, 2004 9:31 am    Post subject: Found it.... Reply with quote

Apprentice

Joined: 18 May 2004
Posts: 42

The 0A was coming from the server the program is connecting to. The data is in EBCDIC and then converted to ASCII. Along with that the 0A (LF) at the end of the string was in ASCII and was treated as EBCDIC character 0A (whatever that is) and then converted to ASCII.

I should have choped it before the conversion.
_________________
A Perl Hacker
http://www.goreliance.com
http://www.any2xml.com
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Jun 26, 2004 1:25 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Except, of course, chop is deprecated for use as "remove trailing line endings".

You should chomp instead of chop. It's more platform neutral.
_________________
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 » General IBM MQ Support » Extra Line Feed (0x0A) at the end of message
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.