Top: f77 Up: 13 - Statements
Previous: 13,54 - RETURN Next: 13,56 - REWRITE


Section 13,55: REWIND

 Repositions a sequential file currently open for sequential or
 append access to the beginning of the file.  Do not use a REWIND
 statement for a file that is open for direct access.  Use this
 statement only for files on disk or magnetic tape.  Statement
 format:

     REWIND ([UNIT=]u[,ERR=s][,IOSTAT=ios])
     REWIND u

     u    Is an integer variable or constant specifying the 
          logical unit number of the file, optionally prefaced 
          by UNIT=.  UNIT= is required if unit is not the first 
          I/O specifier.

     s    Is the label of a statement to which control is 
          transferred if an error occurs, prefaced by ERR=.

     ios  Is an integer variable to which the completion status 
          of the I/O operation is returned, prefaced by IOSTAT=.

 See also BACKSPACE.


Top: f77 Up: 13 - Statements
Previous: 13,54 - RETURN Next: 13,56 - REWRITE