Examples of data queue in IBM AS/400

15 pts.
Tags:
AS/400 administration
AS/400 Data Queue
Data Queue
RPG ILE
I would like know how to to use the Dataq. Please send me examples in RPG ILE/400 as possible. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

All of the information necessary to begin using data queues is in the Information Center — including an Example in ILE RPG: Using data queues.

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

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    Why this interest in DATAQues and how can we help further? Phil
    50,205 pointsBadges:
    report
  • Aarancibia
    I need make RPG ILE Services Programs on AS/400 plataform and I need Help to do this. Thanks.
    15 pointsBadges:
    report
  • philpl1jb
    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
    50,205 pointsBadges:
    report
  • TomLiotta
    What do you need that isn't in the IBM example? Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • PGMBOB
    We had a program reciving the DTAQ to process an order to an invoice. As the order was written the order key was written to the*DTAQ. 
    The "never ending" program would process each order one by one.
    You might think about a retry method and a way to send an END command to the dataq.   Good Luck
    1,110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following