lakshmibala,
For both type of queue's you can use CEBR transaction
To read the tdq contents start the CEBR transaction with an empty TSQ
use GET command to transfer the contents of TDQ to empty TSQ, this enables you to browse thw contents of TDQ.
After reading the TDQ contents again you have to transfer this contents back to TDQ by using PUT command
(beacuse reading of TDQ contents is a destructive one )