This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Charlie, > Thanks for your answer. > > We wonder if we use pq_seqdel() in the right way. If we write the program > like this : > > pq_sequence(pq, TV_GT, PQ_CLASS_ALL, dummy, 0); /* dummy always return 0 */ > > pq_seqdel(pq, TV_EQ, PQ_CLASS_ALL, 0, &savail, &ins_time); > > Should pq_seqdel() be able to delete the product found by pq_sequence() ? The pq_sequence() call will set the product-queue cursor to the data-product just after the one the cursor currently references. If that data-product exists, then the subsequent pq_seqdel() should delete that product. Both the pqutil(1) and pqexpire(1) programs use pq_seqdel() -- so you might examine them. It might be best to set the 4th argument of pq_seqdel() to a non-zero value so that the function waits on any locks. > Best Regards, > > Charlie Chang Regards, Steve Emmerson Ticket Details =================== Ticket ID: MIY-342905 Department: Support LDM Priority: Normal Status: Closed