Author |
Message
|
sidharth_bora |
Posted: Sun Aug 12, 2007 10:29 pm Post subject: URGENT -hELP api exit for total no. of messages |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Aug 13, 2007 12:37 am Post subject: |
|
|
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 |
|
 |
sidharth_bora |
Posted: Mon Aug 13, 2007 12:44 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Mon Aug 13, 2007 8:15 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
sidharth_bora |
Posted: Mon Aug 13, 2007 5:35 pm Post subject: |
|
|
 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 |
|
 |
David.Partridge |
Posted: Wed Sep 19, 2007 12:25 am Post subject: |
|
|
 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 |
|
 |
|