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
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.
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