is there any process to store the data of dataqueue

15 pts.
Tags:
AS/400
DB2
is there any process to store the data of dataqueue
ASKED: January 20, 2010  7:32 AM
UPDATED: January 21, 2010  7:38 AM

Answer Wiki

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

This is link to <a href=”http://home.windstream.net/craigru/jcrcmd2.html#top_tag”>Craig Rutledge JCRCMDS</a>. There is a tool to display dtaq-entries. You can download JCRCMDS and install them.
You can use the source of the retrieve-program and write the entries into a file, which you can save.

======================================================

In general, there are five ways to “store” the entries in a data queue:<ol>
<li>Dump the data queue object to a spooled file with DMPOBJ (or DMP or DMPSYSOBJ). The spooled file takes work if you want to recover from it.</li><li>Receive each entry with QRCVDTAQ, log it wherever you want it “stored” and then requeue the entry with QSNDDTAQ.</li><li>Use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qmhrdqm.htm”>Retrieve Data Queue Message (QMHRDQM) API</a> to retrieve all entries in a single operation.</li><li>If the QMHRDQM API seems too complex, use a free-ware tool such as from Craig Rutledge above. Modify it to log the entries rather than to display them.</li>
</ol>

The QMHRDQM API has a serious limitation in that it can retrieve the first entry, the last entry or all entries. It can’t loop through entries one at a time. You either get them all at once or you get only the first or last entry. (Both options 3 & 4 have this problem.)

It might seem useful to get them all, but data queues can grow to 2GB in size in V5R4. You’ll have an interesting time figuring out creating variables that can hold that much if your data queue is of any significant size. Single data queue entries can be as large as the largest RPG variables.

IMO, the only truly reliable and useful way to “store” the entries is the fifth way — use STRJRNOBJ to journal the data queue entries. The system supports it, it has no tricky limitations and any serious problems may be the responsibility of IBM Support to fix.

I’m not sure why there’s a need to “store” data queue entries. If there are operational problems that storage attempts to solve, a data queue is almost certainly the wrong object type to be using in the first place.

Tom

Discuss This Question: 2  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
    you can place elements in a dataq with the API snddtaq and get elements from the dataqueue with rcvdtaq. The dataqueue can be saved for backup purposes just like other objects. Phil
    48,545 pointsBadges:
    report
  • TomLiotta
    Note that data queue objects can be saved, but AFAIK, the data queue entries are not saved/restored. Tom
    125,585 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