Posted: Wed Jun 23, 2004 11:27 am Post subject: Extra Line Feed (0x0A) at the end of message
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.
Posted: Sat Jun 26, 2004 9:31 am Post subject: Found it....
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.
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