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 » what API to use

Post new topic  Reply to topic
 what API to use « View previous topic :: View next topic » 
Author Message
serpota
PostPosted: Thu Nov 20, 2014 3:25 am    Post subject: what API to use Reply with quote

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
View user's profile Send private message
tczielke
PostPosted: Thu Nov 20, 2014 4:25 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
serpota
PostPosted: Thu Nov 20, 2014 5:58 am    Post subject: Reply with quote

Voyager

Joined: 26 May 2006
Posts: 85

Thanks for the info, mr tczielke

I guess you mean a "near" future anyway.
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Nov 20, 2014 6:03 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
tczielke
PostPosted: Thu Nov 20, 2014 6:04 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
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
View user's profile Send private message
JosephGramig
PostPosted: Thu Nov 20, 2014 11:58 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1230
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
View user's profile Send private message AIM Address
tczielke
PostPosted: Thu Nov 20, 2014 12:01 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

I did not realize that. Thanks for the tip!
Back to top
View user's profile Send private message
serpota
PostPosted: Thu Nov 20, 2014 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Nov 20, 2014 12:33 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

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
View user's profile Send private message
mqjeff
PostPosted: Thu Nov 20, 2014 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
serpota
PostPosted: Thu Nov 20, 2014 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
serpota
PostPosted: Thu Nov 20, 2014 11:18 pm    Post subject: Reply with quote

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
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 » what API to use
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.