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 TomLiotta108,215 pts.
All Answer Wiki Contributors: TomLiotta108,215 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
Why this interest in DATAQues and how can we help further?
Phil
I need make RPG ILE Services Programs on AS/400 plataform and I need Help to do this. Thanks.
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
What do you need that isn’t in the IBM example?
Tom
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