Posted: Wed Jun 14, 2017 1:08 am Post subject: Read all ImqMessage data
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.
Posted: Wed Jun 14, 2017 4:44 am Post subject: Re: Read all ImqMessage data
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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?
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