Relationship to the CLOSE macro instruction

When FREE=CLOSE is specified for a data set that is opened and closed more than once during a job step:
  • The data set is unallocated after it is closed if the assembler CLOSE macro instruction specifies DISP, REWIND, or FREE. If the data set is reopened after the system has unallocated it, the job step abnormally terminates, unless the data set is dynamically allocated in the interval.

The data set is not unallocated until the end of the job if the assembler CLOSE macro instruction specifies LEAVE or REREAD. Then the data set can be reopened.