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 » MQAI: rc=2067, MQRC_SELECTOR_ERROR

Post new topic  Reply to topic
 MQAI: rc=2067, MQRC_SELECTOR_ERROR « View previous topic :: View next topic » 
Author Message
dpchiesa
PostPosted: Tue Jun 04, 2002 6:38 pm    Post subject: MQAI: rc=2067, MQRC_SELECTOR_ERROR Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 46

I am having some limited success with MQAI in VB.NET. I can retrieve Q_NAME, CURRENT_DEPTH, and MAX_DEPTH for all local queues, but cannot retrieve HIGH_DEPTH or MSG_DEQ_COUNT. I get cc=2, rc=3008 (COMMAND_FAILED). The embedded error rc is 2067 (MQRC_SELECTOR_ERROR).

Any ideas? I have tried to RTFM but no joy. The examples I've seen never show inquiring more than 1 or 2 queue attributes. Is there a limit on the number of attrs one can request in a responseBag with MQAI? Is this the security problem others have described in their posts about MQAI ?

maybe relevant: when I run MQSeries Explorer, I can see the details of only 3 queues: default, postcard, and clq_default_hostname. But I see all the attributes (creation date, high+low depth limit+event, etc etc). When I run my MQAI test, if I request only the attributes Q_NAME, CURRENT_DEPTH, and MAX_DEPTH, then I get the results for every local queue. If I add any additional attributes, then I get the 3008 and 2067 errors.

Awaiting enlightenment,
-D
_________________
-dpchiesa
Back to top
View user's profile Send private message
dpchiesa
PostPosted: Thu Jun 06, 2002 12:12 pm    Post subject: Hmmmm Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 46

I think I found some answers here.
I stopped querying for HIGH_Q_DEPTH and MSG_DEQ_COUNT and so forth. None of the MQAI examples I saw had included these params, and the ONLY time I saw those params was in other (non MQAI) calls.

So, I tried querying different items and had some success. I have queried:

Creation date/time
Alteration date/time
max q depth
current q depth

All of this works just fine. I think that the 2067 (SELECTOR_ERROR) is indicating that I am querying for an attribute that is not queryable.

If someone could confirm this I'd appreciate it. OR better, if someone could point me to the list of opcodes that are acceptable as queryable attributes, that would be great.

You can see what I have done so far at
http://hosting.msugs.ch/cheeso9/dl/amqsailq.NET.zip

This is a Visual Studio .NET solution - it is working in Visual Studio .NET v2002 (the released version). You specify a Queue Mgr name, and it queries MQ using MQAI and displays the results in a Windows.Forms datagrid.


-D
_________________
-dpchiesa
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Jun 12, 2002 1:03 pm    Post subject: Reply with quote

Jedi Knight

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

You might want to take a look at the Programmable System Management manual (http://www-3.ibm.com/software/ts/mqseries/library/manualsa/index.html). Under the Inquire Queue section, it gives a list of what can be inquired. This is probably the list that you are looking for.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dpchiesa
PostPosted: Fri Jun 14, 2002 10:26 am    Post subject: Programmable System Mgmt Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 46

Perfect! Thank-you.

The URL I found is:
ftp://ftp.software.ibm.com/software/ts/mqseries/library/books/csqzai03.pdf

And yes, it lists the items that are inquir-able.
They are:
Q_NAME, Q_TYPE, Q_DESC, INHIBIT_PUT, DEF_PRIORITY, DEF_PERSISTENCE
on distributed platforms:
ALTERATION_DATE, ALTERATION_TIME
and there are a bunch of others, depending on the queue type (local, alias, model, etc).

cheers!

-D
_________________
-dpchiesa
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQAI: rc=2067, MQRC_SELECTOR_ERROR
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.