The EODAD parameter of the DCB or DCBE macro specifies the address
of your end-of-data-set routine, which can perform any final processing
on an input data set. The EODAD routine generally is not regarded
as being a subroutine. This routine is entered when your program does
any of the following:
- Issues a CHECK macro (for a READ macro) or a GET macro and there
are no more records or blocks to be retrieved.
- Issues an FEOV macro while reading on the last or only volume.
With sequential concatenation these events cause entry to your
EODAD routine only if you are reading the end of the last data set.
For a BSAM data set that is opened for UPDAT, this routine is entered
at the end of each volume. This lets you issue WRITE macros before
an FEOV macro is issued.