0 pts.
 Restoring a dtaq in iseries.
I need to know if there is a way to save a data queue with some entries in it, and then restore the data queue in the same or other library with its entries included. When i do that, the dtaq is empty. If someone knows how to do that, please tell me. Thanks.

Software/Hardware used:
ASKED: May 12, 2005  6:08 PM
UPDATED: October 25, 2009  10:44 AM

Answer Wiki:
you can save the object itself, the data queue, but not what is in it.. ===================================================== Since you don't tell us anything about your environment, it's hard to say. But I can suggest looking at the QDTA() parameter of SAVOBJ if you're at V5R4 or later. Tom
Last Wiki Answer Submitted:  October 25, 2009  10:44 am  by  Superfreak   0 pts.
All Answer Wiki Contributors:  Superfreak   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

The only way I have been able to accomplish this is to create a flat file the same size as the largest entry in your dtaq. Write a quickie RPG program to receive the entries from your dtaq and write them into the file. Delete the dtaq and recreate it in the new library. Then write another RPG program to read the file and write these back to the dtaq.

 645 pts.

 

Just in case someone finds this question and answer, V5R4 added the capability to save *DTAQ messages. The parameter QDTA was added to commands such as SAVOBJ, SAVLIB, etc.

Bruce Vining

 6,055 pts.