EODAD End-of-Data-Set Exit Routine

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: 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.