Author |
Message
|
Tollo |
Posted: Wed Dec 14, 2005 2:37 am Post subject: PCF Message support and MQ Versions |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 2
|
Hi
Using some code from here and other internet sources I'm trying to get any PCF Messages to work on our MQ implementation. I'm using c# and the net interface dll and have tried several different attempts all of which return MQRC_NO_MSG_AVAILABLE. Were on MQ version 5.2 using Z/os as the Queuemanager is there a version issue or a setting issue that needs to be altered if you get that error?
Thanks very much for any help
Heres the code:
// Code looted from internet.
PCFMessage pcfMsg = new PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);
pcfMsg.AddParameter(new MQCFST(CMQCFC.MQCACH_CHANNEL_NAME, "JMCG.IN"));
pcfMsg.AddParameter(new MQCFIL(CMQCFC.MQIACH_CHANNEL_INSTANCE_TYPE,
new int[] { MQC.MQOT_SAVED_CHANNEL } ));
try {
PCFMessageAgent agent = new PCFMessageAgent(cc.GetCC().sharedQM);
PCFMessage[] pcfResponses = agent.Send(pcfMsg);
TraceResponses(pcfResponses); // Just traces out array
} catch (Exception ex) {
TraceException(ex, "inquire error"); // Just traces out exception
}
Thanks very much for any help |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Dec 14, 2005 2:42 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
MQ on z/OS verisons 5.2 and 5.3 do not understand PCF commands. You have to write the command in "text" format to the system command input queue supplying a replytoq for the answers.
afaik PCF is possible in version 6 _________________ Regards, Butcher
Last edited by Mr Butcher on Wed Dec 14, 2005 2:43 am; edited 1 time in total |
|
Back to top |
|
 |
wschutz |
Posted: Wed Dec 14, 2005 2:43 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Stop!
Quote: |
Were on MQ version 5.2 using Z/os as the Queuemanager |
There is no PCF support for commands on zOS until V6 of the qmgr.
Other platforms (unix, iSeries, windows) support PCF commands, but not zOS unitil v6.
For your release of the zOS qmgr, you need to send "text" commands:
"display ql(*) all" ...... _________________ -wayne |
|
Back to top |
|
 |
Tollo |
Posted: Wed Dec 14, 2005 2:46 am Post subject: |
|
|
Newbie
Joined: 13 Dec 2005 Posts: 2
|
|
Back to top |
|
 |
wschutz |
Posted: Wed Dec 14, 2005 3:05 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Look at the zOS System Admin Guide:
Chapter: Operating WepShere MQ for ZoS
Section: Writing Programs to Administer WebSphere MQ _________________ -wayne |
|
Back to top |
|
 |
|