You have to add a DCT entry for the with the queue name(4 characters) and also a DSName corresponding to a file in the region.
TDQs can be intra/extra partitioned.
you must be extremely careful with the record length
You need to first define a tdq, then install the tdq. Only then u can access the tdq for read or write. For defining and installing the tdq u can use CEDA command. For read and write operations on the tdq u can use CECI command. TDQ's can be intra, extra or indirect partitioned. You can delete the TDQ using DELETEQ command under CECI after it is no longer useful.
Here are some of differences between a TDQ and a TSQ,
1) In Temporary Storage Queues Data is read randomly, While in Transient Data Queues data must be read sequentially.
(2) In a TSQ data can be read any number of times as it remains in the queue until the entire Queue is deleted. In TDQ data item can be read once only. To reuse the TDQ it must be closed and reopened.
(3) Data can be changed in TSQ, but not in TDQ.
(4) TSQ can be written to Auxiliary or Main Storage, while TDQ is written to Disk. Temporary storage is a holding place, while Transient data is always associated with destination.
(5) TSQ name is defined dynamically, while a TDQ name need to be defined in the DCT. Note: An application uses TSQ 's to pass info' from task to task, while a TDQ to accumulate records before processing or send data for external use, such as a print operation or other.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.