|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
carriage return getting stripped |
« View previous topic :: View next topic » |
Author |
Message
|
farriz |
Posted: Thu Apr 21, 2011 1:31 pm Post subject: carriage return getting stripped |
|
|
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 |
|
 |
gbaddeley |
Posted: Tue Apr 26, 2011 6:10 pm Post subject: |
|
|
 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 |
|
 |
flahunter |
Posted: Tue Apr 26, 2011 6:38 pm Post subject: |
|
|
 Acolyte
Joined: 30 Oct 2008 Posts: 62
|
What's the Encoding and CCSID are you using when use MQPUT? |
|
Back to top |
|
 |
skoobee |
Posted: Tue Apr 26, 2011 9:41 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Apr 27, 2011 10:45 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|