Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Assuming this is an Intra-Partition TDQ (Transient Data Queue), the short answer is, you can't.
You can determine the number of TDQ "Items", via the INQUIRE TDQ API, keyword "NUMITEMS" (Binary-Fullword), if issued from an application program, requires the "SP" translator option be specified during the Translation step.
In test, you can use CECI to READ the TDQ records/items and write each one to a temporary TSQ. Then, as soon as the QZERO condition is raised (no more records/items), you can write each item back to the TDQ from the TSQ. When doing this, ensure the Trigger level is set to ZERO. You can do this via CEMT.
Otherwise, in Production, I can't think of an option.
Transient Data is defined as "Going in and out of existence quickly". So, as soon as you issue a READQ TD, the item/record is gone.
Bill |
|