Thursday, June 26, 2008

Clear Data Queues easily:

One method of clearing data queues it to read all of the data queue entries using QRCVDTAQ API and to clear a data queue. With a very large data queue, you can just imagine how long it would take to clear because your program has to read each and every entry of the data queue. In fact, it will consume a lot of resources since you are calling an API so many times.

This problem can be solved in a simple way bay calling a singe API just once. QCLRDTAQ API is supplied by IBM. By using it, you can delete all entries in a data queue or some specified entries if the data queue is a keyed one.

No comments: