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 Installation/Configuration Support » A Doubt in MQI's

Post new topic  Reply to topic
 A Doubt in MQI's « View previous topic :: View next topic » 
Author Message
vignesh1988
PostPosted: Tue Apr 16, 2013 8:55 am    Post subject: A Doubt in MQI's Reply with quote

Acolyte

Joined: 13 Apr 2013
Posts: 62
Location: Chennai

As we can Inquire a MQ Queues Objects using MQINQ call.
Why can't be use MQINQ call for Inquiring for Channel attributes. Why in all internets sites "Inquiring Channels" using PCF's (or) MQAI is oly given..

The MQOPEN is taking defaultly the value of MQOT_Q which is 1.
When i look at the header file, i saw MQOT_CHANNEL and the value is 6.. When i give the value and try to open the channel , I am getting MQOPEN failed with 2043..

How to Inquire channel objects easily using MQI's alone like easy as queues.. Please hel me out..
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Apr 16, 2013 9:41 am    Post subject: Reply with quote

Grand High Poobah

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

Well did you check the MQI for channel commands? Did you find an easy way?
No? So use the pcf commands already, they're made for that purpose.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
hughson
PostPosted: Thu May 09, 2013 8:42 am    Post subject: Re: A Doubt in MQI's Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1959
Location: Bay of Plenty, New Zealand

vignesh1988 wrote:
Why can't be use MQINQ call for Inquiring for Channel attributes.

MQINQ is provided for queues, because it is sometimes necessary for an application (not an administrator) to check certain values on the queue object it is using, for example whether triggering is set on. You'll notice that MQSET is only provided for queues and this is for a similar reason.

vignesh1988 wrote:
When i look at the header file, i saw MQOT_CHANNEL and the value is 6.

MQOT_* values are used in places other than MQOPEN, for example when looking at event messages that describe a change to a channel object by an administrative command, the event that is created for the audit trail of this, uses these values to indicate the type of object that was changed.

vignesh1988 wrote:
When i give the value and try to open the channel , I am getting MQOPEN failed with 2043.

The return code MQRC_OBJECT_TYPE_ERROR (2043) is telling you that you cannot use that object type in an MQOPEN.

vignesh1988 wrote:
How to Inquire channel objects easily using MQI's alone like easy as queues.. Please hel me out..
As already noted in your question, you must use the PCF interface. May I ask why it is your application needs to inquire details of the channel?

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » A Doubt in MQI's
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.