The system unallocates data sets and their associated volume and devices at the end of a job step or at the end of the job.
Dynamic Unallocation
//ddname DD FREE=CLOSE,...
Use FREE=CLOSE to allow the system to reallocate a volume or device that is used frequently in the system.
Example
//DD1 DD DSNAME=DS6,DISP=OLD,UNIT=TAPE,VOLUME=SER=111111,FREE=CLOSE