Previous Topic: #DEQ Status CodesNext Topic: @DISCON—cancels the current membership of a specified record


#DEQ Example

The following example of the #DEQ statement releases the resource that is identified in the program variable storage field labeled RESOURC3. Register 4 contains the length of the resource. If the resource cannot be found, control will be returned to the routine NOTFOUND.

#DEQ RSCID=(RESOURC3,(4)),COND=IDNF,IDNFXIT=NOTFOUND

At least one resource ID (RSCID) could not be found; all that were located have been dequeued.