── REWIND ── ( ── <file identifier> ── ) ──────────────────────────────┤
Explanation
The REWIND statement closes the specified file. The logical file remains assigned to the physical file. If the file is a tape file, it is rewound. For disk files, the record pointer is reset to the first record of the file. The file buffer areas are returned to the system. The I/O unit remains under program control.
Examples
The following are examples of the REWIND statement:
REWIND (GLOBAL)
REWIND (FILEA)