EODAD Exit Routine to Process End of Data

VSAM exits to an EODAD routine when an attempt is made to sequentially retrieve or point to a record beyond the last record in the data set (one with the highest key for keyed access and the one with the highest RBA for addressed access). VSAM does not take the exit for direct requests that specify a record beyond the end. If the EODAD exit is not used, the condition is considered a logical error (FDBK code X'04') and can be handled by the LERAD routine, if one is supplied. See LERAD Exit Routine to Analyze Logical Errors.