Author |
Message
|
usrmusic |
Posted: Fri Mar 09, 2007 8:54 am Post subject: How to inquire on status of a channel via a CICS Cobol Pgm. |
|
|
Newbie
Joined: 09 Mar 2007 Posts: 3
|
Hi All,
I have a working cics cobol program that can inquire on queues and processes but I am trying to inquire on the status of a channel associated with the queues. I have the channel name walking from the queue, but can't seem to figure out how to inquire on the channel.
Can anyone help.
Thanks. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri Mar 09, 2007 9:05 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
there is no MQINQ for the channel status, mqinq only works for queues and queuemanager objects.
you have to issue a command to mqseries (either in "clear" text using the system.command.input queue or using pcf messages, depending on your mq version) and interpret the result you get back in the reply queue. _________________ Regards, Butcher |
|
Back to top |
|
 |
usrmusic |
Posted: Fri Mar 09, 2007 9:42 am Post subject: Can this be done in a cobol program? |
|
|
Newbie
Joined: 09 Mar 2007 Posts: 3
|
Thanks Butcher, I an not familar with these commands, can they be done in a cics app program? Can you supply a little more detail, or point me in the right direction for finding it on my own.
Thanks. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Mar 09, 2007 10:26 am Post subject: Re: Can this be done in a cobol program? |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
There is a manual that covers PCF, which is avaialable for V6 on the mainframe.
It also covers how to make non-PCF requests, for versions earlier than V6.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
usrmusic |
Posted: Fri Mar 09, 2007 2:44 pm Post subject: |
|
|
Newbie
Joined: 09 Mar 2007 Posts: 3
|
My shop has version 5.6 of MQ, so PCF is out. I need to access the channel status within the cics cobol module. Can you tell me which manual might explain that, or give me an example of the code.
Thanks again. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Mar 09, 2007 5:57 pm Post subject: Re: Can this be done in a cobol program? |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
EddieA wrote: |
It also covers how to make non-PCF requests, for versions earlier than V6. |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Mar 09, 2007 10:17 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
OK...I will ask the obvious .... why do you even need to know the status of a channel? An application really shouldn't need to know the status of a channel (IMHO) unless you are writing some kind of monitor.
In pre 6.0 you can write a MQSC command to the system command input quuee giving the request a reply queue (usually a TDQ) where the results of the command can be writen. |
|
Back to top |
|
 |
|