× 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.



Bob Bledsoe wrote:

A data queue is sort of like a file. There's no 'starting' or
'stopping' it. It exists if you have created it. You can check to see
if it exists with CHKOBJ or equivalent API.

What you're probably trying to do is have a single data queue and
multiple 'listener' jobs receiving from it. In a nutshell, there's one
job that sends an entry to the dtaq (probably formatted with a data
structure) and then you have a job running in batch that does a receive
dtaq to pull entries off it.

If the sending program places a time stamp in the entry, the receiving
program can then check to see how long the entry waited in the queue
before being received. If that delay is long, you submit another job
that does the exact same thing - receive dtaq.

The idea is to add more jobs to batch until the delay time is
acceptable. You may want the ability to end those extra jobs if the
rate drops. I strongly suggest some sort of master program to monitor
the situation rather than try to have each processing / listening job do it.

Hope this helps some.
--buck

The problem here is that I'm not sure what I mean. I have not done anywork
with the datq or usrq before. The program is calling another progran that is
used to start the queue. I don't want to start the queue if it is already
there and active. How do I know if the queue is there and active?

Thanks,
Bob



On Mon, Mar 16, 2009 at 9:36 AM, Alan Campin wrote:

Not sure what you mean by instance? Do you mean a message in the queue? Do
you mean how do you monitor for a message in a Data Queue or User Queue?

I have a service program that implements functions that read and write to
user queues if that is what you need.

On Mon, Mar 16, 2009 at 10:22 AM, Bob Bledsoe wrote:

Good Morning,
I am writing a RPGLE program where I will be starting Dtaq's and usrq's.
I
want to monitor so that I only start up an instance when there are no
instances currently. I have looked around but can't find anything that
shows
how to do the monitor. Can someone please give me a push in the right
direction?

Thank you,

Bob B

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.