15 pts.
 Examples of data queue in IBM AS/400
I would like know how to to use the Dataq. Please send me examples in RPG ILE/400 as possible. Thanks

Software/Hardware used:
ASKED: November 22, 2010  9:31 PM
UPDATED: November 24, 2010  6:59 AM

Answer Wiki:
All of the information necessary to begin using data queues is in the Information Center -- including an <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapiref%2Fexdqilerpg.htm">Example in ILE RPG: Using data queues</a>. An example from the IBM Information Center isn't much good for anything but an example. But they do show how to use the functions. They're available to everyone. Tom
Last Wiki Answer Submitted:  November 23, 2010  6:02 am  by  TomLiotta   108,215 pts.
All Answer Wiki Contributors:  TomLiotta   108,215 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Why this interest in DATAQues and how can we help further?
Phil

 44,190 pts.

 

I need make RPG ILE Services Programs on AS/400 plataform and I need Help to do this. Thanks.

 15 pts.

 

CRTDATQ is used to create the data queue
the API QSNDDATQ puts elements into the dataq
the API QRCVDATQ retrevies and removes elements from the Queue.

QRCVDATQ has a wait option — how long the program will wait for a new entry .. if you use a negative number it waits forever.

More questions?
phil

 44,190 pts.

 

What do you need that isn’t in the IBM example?

Tom

 108,215 pts.

 

Yeah, I guess a link to the Data Queue APIs documentation might be useful. A search of the Info Center would find that, near the IBM example program.

An example doesn’t quite seem to be what you want, but it’s not clear what you’re really after.

I need make RPG ILE Services Programs on AS/400 plataform…

But how did that get turned into a request for a data queue example? Were you asked to create a services program to process data queue entries? Who needs it to use a data queue?

Although a data queue might be the right solution, it sounds as if someone has already made a design decision. And you have been asked to create a part of the proces.

Or you have been asked to create a “service program” that provides data queue procedures. Unfortunately that doesn’t make much sense. The data queue APIs already present an effective interface. A service program would just make it all more complicated.

Tom

 108,215 pts.