GET routine exits

The end-of-data-set (EODAD) routine is given control if the end of the data set is reached; afterward, the data set must be closed. Issuing a GET macro in the EODAD routine results in abnormal termination of the task.

The error analysis (SYNAD) routine is given control if the input operation could not be completed successfully due to an uncorrectable I/O error. The contents of the general registers when control is given to the SYNAD exit routine are described in Status information following an input/output operation.

If your SYNAD or EODAD routine is entered, it is entered in the addressing mode in which the GET was issued. If you supplied in the DCBE a SYNAD or EODAD routine which resides above the line, then the GET must be issued in 31-bit addressing mode. On entry to the SYNAD routine, register 1 contains error flags in byte 0 followed by the DCB address in bytes 1-3. For 31-bit callers, the caller must save the error flags, if needed, and then clear the high order byte of register 1 before using it to access fields within the DCB in the SYNAD routine.