── RELEASE ── ( ── <file identifier> ── ) ─────────────────────────────┤
Explanation
The RELEASE statement closes and releases the specified file. The file buffer areas are returned to the system. The logical file is no longer assigned to the physical file. If the file is a temporary disk file, the disk space is deallocated. If the file is a tape file, it is rewound.
The tape is unloaded if the AUTOUNLOAD file attribute has the value ON, or, if the AUTOUNLOAD file attribute has the value DONTCARE and the AUTOUNLOAD mode of the tape unit is ON.
Examples
The following are examples of the RELEASE statement:
RELEASE (GLOBAL);
RELEASE (FILEA);