The REWIND statement repositions a sequential file currently open for sequential or append access to the beginning of the file. It takes one of the following forms:
REWIND ([UNIT=]u [,ERR=s] [,IOSTAT=ios]) REWIND u
The unit number must refer to a file on disk or magnetic tape. For example, the following statement repositions logical unit 3 to the beginning of the currently open file:
REWIND 3
A REWIND statement should not be specified for a file that is open for direct access.