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 » How to get a Particular Message from the Queue

Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next
 How to get a Particular Message from the Queue « View previous topic :: View next topic » 
Author Message
bruce2359
PostPosted: Tue Sep 16, 2008 9:27 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

What ReasonCode did you receive?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
VijayGoparaju`
PostPosted: Tue Sep 16, 2008 9:33 pm    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

I am getting only the First Message always....When I cilck NEXT Button...
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Tue Sep 16, 2008 10:51 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

Just rename the button to "FIRST" and you are fine.

sorry, could not resist
_________________
Regards, Butcher
Back to top
View user's profile Send private message
VijayGoparaju`
PostPosted: Tue Sep 16, 2008 10:55 pm    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

Please tell me how to move the Cursor position to the next Records and Display them without putting them in a loop...
Where to put this line:
queueGetMessageOptions.Options = MQC.MQGMO_BROWSE_MSG_UNDER_CURSOR;
Please Help Me,
I am in a urgent need to do this..

Thanks in Advance,
Vijay.
Back to top
View user's profile Send private message
markt
PostPosted: Tue Sep 16, 2008 11:28 pm    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

Are you trying to get someone to do your homework for you? Please READ THE DOCUMENTATION and GET SOME TRAINING.
Back to top
View user's profile Send private message
VijayGoparaju`
PostPosted: Wed Sep 17, 2008 1:10 am    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

I have tried already but I didn't get that..
Please Help me,
Vijay
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 17, 2008 6:06 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

At successful completion of MQGET, the msgid and correlid fields in the MQMD are set to the msgid/correlid of the message.

After you successfully MQGET the particular message you want (by setting msgid and correlid in the MQMD), in order to get the next message in the queue, BEFORE the next MQGET you must initialize the msgid and correlid in the MQMD to MQMI_NONE and MQCI_NONE.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Sep 17, 2008 6:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

markt wrote:
Are you trying to get someone to do your homework for you? Please READ THE DOCUMENTATION and GET SOME TRAINING.


My high school junior is always trying to get me to do some of his homework for him. About all that I'll do is read over what he has done and give criticism. How often do you get a teenager to ask you to criticize them?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
VijayGoparaju`
PostPosted: Wed Sep 17, 2008 8:39 pm    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

Is there any method where we can send the Index?
Thanks,
Vijay...
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Sep 18, 2008 4:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

VijayGoparaju` wrote:
Is there any method where we can send the Index?


Did I miss something? I'm not sure what the Index is. As far as sending it is concerned, just copy it to the payload of the message and issue an MQPUT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dkeister
PostPosted: Thu Sep 18, 2008 5:35 am    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

Who knows what he is thinking. The Index might be the browse cursor which was referenced in other posts from this person who obviously does not have much MQ knowledge and does not appear to want to put the effort in to read and UNDERSTAND the GOOD manuals provided by IBM. However, it might be something totally different, but I'm not aware of

By the way for ANYONE INTERESTED, there is a detailed description on 'Browsing messages on a queue' starting on page 142 of the MQSeries Application Programming Guide. It is in Chapter 10 - Getting messages from a queue which if read and understood would answer almost all of the questions recently posted on this topic.

By the way, the only reference to Index in the APG is for Indexed queues, IMS, and INDEX TYPE(z/OS only), which I don't believe should be part of the 'exercise' so who knows???
_________________
Dean Keister
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Toronto_MQ
PostPosted: Thu Sep 18, 2008 7:37 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

If nothing else, this thread has been good for a laugh this morning.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Sep 18, 2008 9:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

dkeister wrote:
By the way for ANYONE INTERESTED, there is a detailed description on 'Browsing messages on a queue' starting on page 142 of the MQSeries Application Programming Guide. It is in Chapter 10 - Getting messages from a queue which if read and understood would answer almost all of the questions recently posted on this topic.


I found this really cool link on the internet. It is to the WMQ documentation:

http://www-01.ibm.com/software/integration/wmq/library/

Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bruce2359
PostPosted: Thu Sep 18, 2008 9:08 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Whoop! Whoop! Whoop! Sarcasm alert.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Sep 18, 2008 9:09 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

<just read my signature>
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3  Next Page 2 of 3

MQSeries.net Forum Index » IBM MQ API Support » How to get a Particular Message from 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.