Author |
Message
|
serpota |
Posted: Thu Nov 20, 2014 3:25 am Post subject: what API to use |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
Good morning.
I need to write a C program to read (and then somehow display)
*) a queue depth (dead letter queue in fact)
*) a channel status (cluster receiver in fact)
*) a listener status (given its name)
What API must I use ? (in fact, C include)
===========================
I am a bit confused as there are few API's.
a) MQAI and "bags"
#include <cmqbc.h> /* if I am not wrong */
b) PCF
#include <cmqcfc.h> /* if I am not wrong */
Thanks. |
|
Back to top |
|
 |
tczielke |
Posted: Thu Nov 20, 2014 4:25 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Hi Serpota,
I recently opened an IBM RFE (Request For Enhancement) about having the MQAI added to z/OS, and the RFE was immediately closed/rejected with the response that the MQAI is planning on being deprecated in the future. So I went with the PCF approach, and recommend you do, as well. |
|
Back to top |
|
 |
serpota |
Posted: Thu Nov 20, 2014 5:58 am Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
Thanks for the info, mr tczielke
I guess you mean a "near" future anyway. |
|
Back to top |
|
 |
tczielke |
Posted: Thu Nov 20, 2014 6:03 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
Here was the response from IBM for the RFE to have z/OS support the MQAI. What is said is slightly stronger, so would like to clarify.
Quote: |
There are no plans to make any enhancements to the MQAI library; there are very few users of it, and it is likely to be formally deprecated in a future release of MQ.
Therefore this request is being rejected.
|
Here is a link to the RFE -> http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=61808 |
|
Back to top |
|
 |
tczielke |
Posted: Thu Nov 20, 2014 6:04 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
tczielke wrote: |
What is said is slightly stronger, so would like to clarify.
|
I meant to say "What I said"
Last edited by tczielke on Thu Nov 20, 2014 12:00 pm; edited 1 time in total |
|
Back to top |
|
 |
JosephGramig |
Posted: Thu Nov 20, 2014 11:58 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
tczielke wrote: |
I meant to say "What I said" |
You know there is an "Edit" button on your comments where you can fix them... |
|
Back to top |
|
 |
tczielke |
Posted: Thu Nov 20, 2014 12:01 pm Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
I did not realize that. Thanks for the tip! |
|
Back to top |
|
 |
serpota |
Posted: Thu Nov 20, 2014 12:16 pm Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
I am having a look at "AMQSAICL.C" - get channel attributes.
Or "amqsaicq.c" - create queue.
All that stuff with the "bags" plus MQExecute is quite ugly, dont you think ?
Is there another way to read the status of a channel ? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Nov 20, 2014 12:33 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Are you writing a separate Monitoring and Alerting utility, or are you doing this from inside the application? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Nov 20, 2014 1:00 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
serpota wrote: |
I am having a look at "AMQSAICL.C" - get channel attributes.
Or "amqsaicq.c" - create queue.
All that stuff with the "bags" plus MQExecute is quite ugly, dont you think ?
Is there another way to read the status of a channel ? |
Yes. Use PCF messages instead of the MQAI.
If you want a c-language example, see http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q024620_.htm
Otherwise, use the Java classes. MUCH easier to use. |
|
Back to top |
|
 |
serpota |
Posted: Thu Nov 20, 2014 10:30 pm Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
*) PCF versus MQAI : my mistake - mr tczielke indicated "not to use MQAI", but I went to samples and looked again for MQAI instead of PCF.
My fault.
*) Java - not my friend. I prefer Delphi, because graphical building of windows and menus and ll kind of items is very easy.
I dont like those core dumps of 60 MB indicating "File not Found".
And those thousands of libs loaded without you requiring them.
Sorry, again, my profile
*) C sample - thanks a lot. Will read it in minutes. |
|
Back to top |
|
 |
serpota |
Posted: Thu Nov 20, 2014 11:18 pm Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
As reply to mr Potkay, to say I am trying to write a separate Monitoring and Alerting utility, a stand-alone code, in C, sure |
|
Back to top |
|
 |
|