|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
dis qstatus(<q name>) - does this add to IPPROCS or OP |
« View previous topic :: View next topic » |
Author |
Message
|
PaulClarke |
Posted: Fri Jan 29, 2016 2:49 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Well actually it is more a question that z/OS didn't support PCF messages at all for many releases. Where as for the Distributed product you needed to wrap the MQSC command in an ESCAPE PCF for the z/OS product you just send the command server the string itself.
So, it almost seems too simple but if you send a string message of DIS Q(*) to the z/OS command queue it will process the command and send the results to the reply queue. Assuming you have authority of course. So, you could use AMQSPUT or Q program if you wished.
Parsing the responses from z/OS is the tricky bit since the z/OS command server has a contact admin habit of blank padding everything! So what you get back is hard to read. MO72 spends a fair amount of its time trying to format the data so it is a little more palatable. Another complication of course is the coupling facility where a single command can cause multiple responses. MO72 tries to sort these out but our MQSCX product does a much better job of it since it is a much more sophisticated program. MQSCX also makes parsing and post processing the responses trivial.
Hope that helps,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
tczielke |
Posted: Sat Jan 30, 2016 6:55 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Yes, that does help. Understanding how z/OS handles the equivalent of a PCF ESCAPE command will make the coding a lot easier for something new I was going to write into the tool. Thank you! _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Feb 01, 2016 6:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could review the code in MS0S, https://github.com/ibm-messaging/mq-mqsc-editor-plugin, to see how it handles this.
Note that it doesn't parse the response, it merely reports it back to the user.
And note that the code may not be very pretty. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|