Release: All supported releases.
Reports are stored in the DDLDCRUN area, in queue records, while waiting to print. It may appear that issuing a DCMT VARY QUEUE <queue-id> DEL would delete the reports by removing the associated queue records. However, deleting the queue records directly will not clear the control blocks that record reports waiting to print.
If the records are removed from the print queue, a DCMT DIS QUEUE will show nothing; and QUED will show nothing. However, a DCMT DIS REPORT will show report(s) waiting to print because the DCMT VARY QUEUE...DEL will not clear the report control blocks.
In a situation where it is required to delete reports that are waiting to print, the only safe way to do so is to issue:
This combination will pause any reports in the process of printing, then delete them all. It will delete the queue records associated with the reports as well as clear all the control blocks used to track the reports sent to the printer.