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 » mqget and a line feed problem

Post new topic  Reply to topic
 mqget and a line feed problem « View previous topic :: View next topic » 
Author Message
paul0al
PostPosted: Fri Mar 07, 2003 12:42 pm    Post subject: mqget and a line feed problem Reply with quote

Apprentice

Joined: 30 May 2002
Posts: 26

I am currently writing a VB program that retrieve messages from the MQ using MQGet. After retriving each message, I write it to the file. But when I open up the file, a square box appears after each line. I am sure that the square box is a line feed (i am using w2k). Is there a way to have MQSeries strip away the line feed or a way to make the boxes disappear?

thanks,
Paul0al
Back to top
View user's profile Send private message
jsware
PostPosted: Sun Mar 09, 2003 12:57 am    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

Where is the message coming from? If it's unix, then a linefeed is one byte, not two on NT (NT actually writes CR/LF pair).

Also many programs on NT store newlines as a single linefeed character in memory.

If you're writing the file in binary mode, then the LF char does not get expanded to a CR/LF pair.

Try writing the file in text mode to get the expansion.
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 » mqget and a line feed problem
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.