The FREE_LUN procedure deallocates previously-allocated file units . This routine is usually used with file units allocated with GET_LUN, but it will also close any other specified file unit. If the specified file units are open, they are closed prior to the deallocation.