ENDFILE Statement Overview

The ENDFILE statement writes an end-of-file record to a sequential file and positions the file after this record (the terminal point), or it causes a direct access file to be truncated after the current record.

For more information, see ENDFILE.