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 » Inquire channel status with pcf in queue sharing group(z/OS)

Post new topic  Reply to topic
 Inquire channel status with pcf in queue sharing group(z/OS) « View previous topic :: View next topic » 
Author Message
steiger
PostPosted: Wed Mar 18, 2009 2:44 am    Post subject: Inquire channel status with pcf in queue sharing group(z/OS) Reply with quote

Newbie

Joined: 18 Mar 2009
Posts: 9
Location: Germany

Hello,

I'm using pcf in Java to ask the queuemanager about information of running client-server connections. This works well. But I know have problems to get this information out of a queue sharing group.

Code:

request = new PCFMessage (CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);
request.addParameter(CMQCFC.MQCACH_CHANNEL_NAME, cHannelName);
request.addParameter(CMQCFC.MQIACH_CHANNEL_INSTANCE_TYPE, CMQC.MQOT_CURRENT_CHANNEL);
request.addParameter(CMQCFC.MQCACF_COMMAND_SCOPE, new String("*"));

//send PCF
try {
      logger.debug("Sending PCF request... ");
      responsesChStat = null;
      responsesChStat = agent.send(request);
      } catch (PCFException pcfEx) {
           logger.debug("CC: "+ pcfEx.completionCode);
           logger.debug("RC: "+ pcfEx.reasonCode);
           logger.debug("Message: "+ pcfEx.getMessage())
      }


The result is always the same:
    CC = 2
    RC = 2030 (MQRCCF_NONE_FOUND)


With COMMAND_SCOPE = *, the command should be executed on every active queuemanager in a sharing group.
I even get the 2030 RC, when the comand is executed on the queuemanager, where the client-server connections are established.

When I delete this line of code
Code:
request.addParameter(CMQCFC.MQCACF_COMMAND_SCOPE, new String("*"));

I get the correct result if the right queuemanager of the queue sharing group was chosen.

Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Mar 18, 2009 6:01 am    Post subject: Reply with quote

Poobah

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

MQRC 2030 0x000007ee MQRC_MSG_TOO_BIG_FOR_Q

Did you really get MQRC 3200 (0C80) (RC3200): MQRCCF_NONE_FOUND?

Did you look up the Reason Code in the WMQ Messages manual? What did it say the rc means?
_________________
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
steiger
PostPosted: Thu Mar 19, 2009 1:02 am    Post subject: Reply with quote

Newbie

Joined: 18 Mar 2009
Posts: 9
Location: Germany

I stated the wrong rc.

I definitely always get this one:
3200 (0C80) (RC3200): MQRCCF_NONE_FOUND

The manual says

No items found matching request criteria.

An Inquire command found no items that matched the specified name and satisfied any other criteria requested.


But there are definitely channel status, which should be found.

Maybe there is another possibility to pass the asterisk? Is there a constat for that purpose?
Back to top
View user's profile Send private message
steiger
PostPosted: Thu Mar 19, 2009 4:45 am    Post subject: Reply with quote

Newbie

Joined: 18 Mar 2009
Posts: 9
Location: Germany

The above stated fragement of code does work.
It seems that I had some environmentally problems.

Thanks for your help.

Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Mar 19, 2009 5:48 am    Post subject: Reply with quote

Poobah

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

Hmmm. Channel status comes in two flavors: current and saved. Current is for channels currently active; and current is the default according to the MQSC manual.

Is it possible that some of the channels you were hoping to see had disonnected, and therefore had no current status?
_________________
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
steiger
PostPosted: Mon Mar 23, 2009 2:04 am    Post subject: Reply with quote

Newbie

Joined: 18 Mar 2009
Posts: 9
Location: Germany

I monitored the connections with the MQ Administrator software. The channels were running when the pcf command was issued.

But I found out the follwoing:
If there are 0 or 1 active connections the command returns "3200 (0C80) (RC3200): MQRCCF_NONE_FOUND".
If there are at least 2 running connections, the command returns the correct result.

I think I will now open a PMR for MQ z/OS V6.

Thanks for your help.
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 » Inquire channel status with pcf in queue sharing group(z/OS)
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.