DFHTPQ (undelivered messages clean up program)
The undelivered messages clean up program (DFHTPQ) checks the chain of automatic initiate descriptors (AIDs) to detect and delete AIDs that have been on the chain for an interval exceeding the purge delay time interval specified by the PRGDLAY system initialization parameter, if this has a nonzero value.
Figure 1 shows the undelivered
messages clean up program interfaces.
Figure 1. Undelivered messages
clean up program interfaces

Note:
- DFHTPQ is initiated the first time by the mapping control program (DFHMCP), by interval control, or by the transaction CSPQ. Thereafter, it reinitiates itself (see note 5).
- DFHTPQ communicates with the allocation program (DFHALP) to locate and unchain AIDs.
- DFHTPQ communicates with storage control to free AIDs that have been purged and to acquire storage for notification messages.
- Transient data control is used to send notification messages.
- Interval control is used to obtain the current time and to reinitiate this task (DFHTPQ).
- DFHTPQ communicates with temporary-storage control to retrieve and replace message control records (MCRs) and to purge messages.