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 » IBM MQ API Support » Read all ImqMessage data

Post new topic  Reply to topic
 Read all ImqMessage data « View previous topic :: View next topic » 
Author Message
jahjouh
PostPosted: Wed Jun 14, 2017 1:08 am    Post subject: Read all ImqMessage data Reply with quote

Newbie

Joined: 28 Mar 2017
Posts: 4

Hello. I would like to read the entire contents of the message read by the get function, using the statement:
If (queue.get (msg)) {
    log (msg.dataPointer ())
}
Log is a function that traces the contents of the message.
My question is: Is msg.dataPointer () used to retrieve all the contents of the message, a form of "readAll"
Thank you for your help.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 14, 2017 4:44 am    Post subject: Re: Read all ImqMessage data Reply with quote

Grand High Poobah

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

jahjouh wrote:
Hello. I would like to read the entire contents of the message read by the get function, using the statement:
If (queue.get (msg)) {
    log (msg.dataPointer ())
}
Log is a function that traces the contents of the message.
My question is: Is msg.dataPointer () used to retrieve all the contents of the message, a form of "readAll"
Thank you for your help.

You did not specify the language you are using. I assume it to be C++.
Somebody more skilled in that language may come along and answer...

FWIW so you log what is at the pointer, but you do not specify the format or anything else being logged. What does your log function look like?
What if the data is binary or needs to be CCSID translated? What are your gmo options?

Have fun
_________________
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 » IBM MQ API Support » Read all ImqMessage data
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.