next up previous contents index
Next: Note: Up: User Routines Previous: Writing

Auxiliary Unit Operations---Rewind

CALL EPRWND (LUNIT,*IBUF*,IERR*)

Rewinds to the start of the current file in use on this unit.

Rewinding an output unit triggers writing the last buffer out and writes an end of file. After a rewind operation (and only in that case) the user may switch from reading to writing or vice versa.

The physical header is reset to the standard header after a rewind.

Input parameters:
LUNIT
logical unit number
Input/Output buffer:
IBUF
user provided unit buffer. Must not be touched by user.
Output parameters:
IERR
error flag. See separate list.


Janne Saarela
Tue May 16 09:44:28 METDST 1995