next up previous contents index
Next: Utility Routines Up: User Routines Previous: Drop

Write EOF mark

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

Mandatory at end of job for all output units (or EPCLOS)

Acts like EPCLOS, but in addition writes an end of file mark on LUNIT if output unit. On IBM and UNIVAC it must be called to properly terminate output units.

Note that on IBM this has the same effect as EPCLOS - the filemark written is backspaced over so a new write to the same logical unit will not result in a new physical file but will merely continue the existing file. Users who really want to write a multi-file tape on IBM within the same job step must call EPEND and then IODD [3].

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