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 » carriage return getting stripped

Post new topic  Reply to topic
 carriage return getting stripped « View previous topic :: View next topic » 
Author Message
farriz
PostPosted: Thu Apr 21, 2011 1:31 pm    Post subject: carriage return getting stripped Reply with quote

Newbie

Joined: 17 Dec 2010
Posts: 4

Iam sending a ASCII message using an MQPUT from VMS operating system in C.The message contains carriage returns and line feeds. The message is sent to an windows based where on an MQGET the carriage return is getting stripped. But the line feeds are not getting stripped. I have set the MQFMT_STRING on the put. I also tried MQFMT_NONE on the put. Still it did not work.The application on the windows end do require carriage return and line feeds.
View user's profile
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Apr 26, 2011 6:10 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

MQ can do conversion of character for character, but it doesn't strip off any characters inside the message (ie. reduce the length of the message). I suggest you do a hex dump of the MQ message buffer just before MQPUT and a hex dump just after MQGET and compare them. It should reveal which end is not doing what you expect.
_________________
Glenn
Back to top
View user's profile Send private message
flahunter
PostPosted: Tue Apr 26, 2011 6:38 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Oct 2008
Posts: 62

What's the Encoding and CCSID are you using when use MQPUT?
Back to top
View user's profile Send private message
skoobee
PostPosted: Tue Apr 26, 2011 9:41 pm    Post subject: Reply with quote

Acolyte

Joined: 26 Nov 2010
Posts: 52

On UNIX, and VMS as well I dare say, the conceptual carriage return and line feed in a text file (or piece of text in a WMQ msg) is a single character x0A. On Windows, the same concept has two actual characters, x0D & x0A. I expect the original msg contains only x0A, which on Windows is inadequate to represent the CRLF.
Use any appropriate filter on either VMS or Windows to replace x0A with x0D0A to make the msg usable by the consuming applicaiton.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 27, 2011 10:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

skoobee wrote:
On UNIX, and VMS as well I dare say, the conceptual carriage return and line feed in a text file (or piece of text in a WMQ msg) is a single character x0A. On Windows, the same concept has two actual characters, x0D & x0A. I expect the original msg contains only x0A, which on Windows is inadequate to represent the CRLF.
Use any appropriate filter on either VMS or Windows to replace x0A with x0D0A to make the msg usable by the consuming applicaiton.

If your message is a text message use a correct windows CCSID and do the get with convert. That should take care of the problem.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » carriage return getting stripped
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.