× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I think we're from an old school where seeing a piece of code that
actually runs and works, really helps get an understanding of what this
API is supposed to do. The best we've got from any of the IBM web pages
just causes confusion ! My colleague - copied on the email has had a
couple of goes at this but not managed to get anything sensible back
from MQ

We have a fairly simple scenario where a message sending routine is
capable of going mad and filling the outbound MQ transmission queue with
a huge number of messages. On our test machine this has the effect of
killing MQ and losing us testing time. So what we are looking to do is
to do an MQINQ from the sending routine at the beginning to extract the
transmission queue from the *RMT queue details, then, at intervals
during the send process, doing an MQINQ on the transmission queue to
check it's safely below it's maximum allowed messages. If not we'll
either end the sending process, or at least make it go to sleep for a
bit until the transmission queue has cleared a bit.

So some example RPGLE code for
(a) how you do an MQINQ to get *RMT queue details - principally to
extract the transmission queue
(b) how you get MQINQ to extract current queue depth and maximum
queue depth

We just find the IBM documentation on this very baffling. Working
examples are always helpful

So if you have anything written in RPGLE (fixed or free format) which
does this would be a great help.

Thanks for your interest in our predicament :-)

Dave


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of DeLong, Eric
Sent: 07 October 2013 20:22
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Does any one have example RPGLE code for the MQ API MQINQ

If you look here,

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amq
wak.doc/ir10120_.htm

You might find some basic examples...

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.amq
wak.doc/ir14940_.htm

Can you say what it is you're having trouble with? That might get you
more responses.

hth,
-Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Williams, David
Sent: Monday, October 07, 2013 11:27 AM
To: rpg400-l@xxxxxxxxxxxx
Cc: Knight, Damian
Subject: Re: Does any one have example RPGLE code for the MQ API MQINQ

We're simple souls who find the IBM documentation on this a bit
unhelpful



So does anyone have an example of some working RPGLE code for the MQINQ
API



We're looking for something that gets back the current queue depth, and
maximum queue depth, and even more helpful something that retrieves the
transmission queue name for a *RMT queue that a routine is about to post
messages to



Any assistance with this will be appreciated

Regards

Dave Williams

IT Projects Analyst - Supply Chain

Royal House, Prince's Gate, Homer Road, Solihull, West Midlands, B91 3QQ


Contact 0778-890-8388



www.waterstones.com <blocked::http://www.waterstones.com/>





The contents of this message and all attachments have been sent in
confidence for the attention of the addressee only. If you are not the
intended recipient you are kindly requested to preserve this
confidentiality and to advise the sender immediately of the error in
transmission. Waterstone's Booksellers Limited, Registered Office
Address: Capital Court, Capital Interchange Way, Brentford, Middlesex,
TW8 0EX. Registered in England, Registered No: 610095





--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.