Posted: Wed Jun 14, 2006 3:24 am Post subject: Getting message as binary array from a queue
Newbie
Joined: 01 Jun 2006 Posts: 5 Location: Bangalore
Hi All,
I am trying to get a message from queue in banary array format.
Can you please suggest how to specify options for
1) MQGMO
2) MQMD.Format
I tried with MQGMQ.Options = MQGMO_WAIT + MQGMO_CONVERT;
MQMD.Format = MQFMT_NONE;
and MQFMT_ IMS_VAR_STRING ;
It is not working.
Please help me
Thanks in Advance.
if you want to get in "binary" format, why do you specify "convert"? if you want to get the message from the queue "as is" then omit the convert, just use mqget. whether you want to wait or not - that depends on your application design.
you do not have to specify mqmd.format, this is an output field for the mqget call.
you should look at the samples, there are some for getting messages. the mqmd and the gmo and all the other api stuff is described in application programmers reference and application programmers guide. _________________ Regards, Butcher
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