Deallocating resources

Deallocation releases resources allocated to your program. You can dynamically deallocate resources that were allocated either dynamically or through JCL, unless the data set is:

In any of these cases, the data set is not deallocated.

Data sets are unallocated:
Note: A data set is not DEQed until it is unallocated by the last step whose JCL references it
When a data set is unallocated: