Execution of an OFF END statement within a subprogram will disable the ON END definition within the context of the subprogram, but when control is returned to the calling program the ON END definition is re-enabled.
End-of-file and end-of-record errors will be reported if no ON END definition is active.