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 » URGENT -hELP api exit for total no. of messages

Post new topic  Reply to topic
 URGENT -hELP api exit for total no. of messages « View previous topic :: View next topic » 
Author Message
sidharth_bora
PostPosted: Sun Aug 12, 2007 10:29 pm    Post subject: URGENT -hELP api exit for total no. of messages Reply with quote

Voyager

Joined: 24 Nov 2005
Posts: 87

Hi Guys,

I have very less experience in C. I downloaded this C source from the following
http://www.capitalware.biz/pc_win_code_c.html

and am trying out how do i compile and run the same program for Windows QM and *nix QM. I am in 5.3 CSD11.

i have tried cc filename.c
gcc filename.c to no avail

We have time moving to MQ6.0 which has the MQ command to check the no. of get and puts on a queue.

please help me or let me know if there exist a perl/ other codes to do the same.

any help gretaly appreciated.

regards
Sid
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 13, 2007 12:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There is no compiler on Windows unless you install one. You can download the free Visual C++ Toolkit or whatever they're calling it these days from Microsoft.

The Application Programming guide has specific instructions on how to compile and link any MQ C program on any supported platform with any supported compiler.

Exits are a very advanced topic.

Exits require qmgr restarts to manage.

The Perl modules for MQSeries have an easy way to issue the RESET QUEUE STATISTICS PCF command. But you need to compile them for Windows... and that's an advanced topic.

The PCF Classes for Java have an easy way to issue the RESET QUEUE STATISTICS command. And you don't have to do anything fancy or complicated to use them.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sidharth_bora
PostPosted: Mon Aug 13, 2007 12:44 am    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2005
Posts: 87

Hi Jeff,

Thanks for your pointer and suggestions. I will work on it and get back.

regards
Sid
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Aug 13, 2007 8:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

If you need a C compiler for Windows then go to one of my other pages (PC -> Windows Compiler):
http://www.capitalware.biz/pc_win_dev.html

MinGW works very, very well.

I don't post the link to Microsoft's free Visual C++ 2005 Express because I don't like how Microsoft does their free stuff (somethings its crippled, other times its free then not free, etc..). But here's the link if you want it:
http://msdn2.microsoft.com/en-us/express/aa700735.aspx

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
sidharth_bora
PostPosted: Mon Aug 13, 2007 5:35 pm    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2005
Posts: 87

Hi Roger,

Thanks for your help !! Really appreciate your help and time. Will get back

regards
Sid
Back to top
View user's profile Send private message
David.Partridge
PostPosted: Wed Sep 19, 2007 12:25 am    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

This is the point where you get the standard lecture about MQ API Exit programming.

1. Don't even think about doing it unless you are a skilled C programmer (assembler on MVS).

2. Don't even think about doing it unless you already know quite a lot about MQ.

3. Never, ever do it on a system where there are any queue managers you value - you CAN trash a queue manager using the API exit.

4. Read the APG, and APRs very, very carefully.

5. Put abundant tracing and logging into your code, and be prepared to use MQ environment variables that aren't documented to make sure you get a core when your code bombs. (MQS_ACTION_ON_EXCEPTION). You will need to be able to debug those core files.

6. Don't assume that *all* the strange things you may encounter are your fault. Almost all of them *will* be your problem, but some will be IBM's, there have been numerous APARs against the API exit stuff over time, quite a few of which arose from PMRs that I raised.
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 » URGENT -hELP api exit for total no. of messages
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.