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 Discussion » Null Values in the Queue

Post new topic  Reply to topic
 Null Values in the Queue « View previous topic :: View next topic » 
Author Message
Rams
PostPosted: Thu Dec 19, 2002 3:30 pm    Post subject: Null Values in the Queue Reply with quote

Newbie

Joined: 19 Dec 2002
Posts: 1
Location: Comstock Park MI 49321

I am trying to get message from Input queue. The first field's length X(40) and contains value 'MSG INPUT' and the remaining positions filled with null values. The second field has x(6) a value 'FORMAT'. When I try to read this Queue, it only returns 'MSG INPUT' in the buffer. Its not reading the entire queue. Any suggestion how to read null values from the field1?


Thanks,
Ram
Back to top
View user's profile Send private message Yahoo Messenger
nimconsult
PostPosted: Thu Dec 19, 2002 10:44 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

Well it depends on how you check the content of the buffer. If you simply print it out, then on most languages the null character means "end of string", so when you print you see the message up to the first null character. I would recommend you to check the entire content of the buffer (for example by debugging, or by printing each character individually), and I bet that the entire buffer was retrieved.

If it is not the case then you should check the buffer length passed when you call MQGET.

Nicolas
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Null Values in the Queue
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.