NAME
ON ERROR Statement
SYNOPSIS
ON ERROR {GOTO line | RESUME NEXT}
o GOTO line Branches to the first line of the error-handling
routine, specified by a label or line number. To
disable error handling, specify GOTO 0.
o RESUME NEXT Resumes execution with the statement following the
statement that caused the run-time error. Use the ERR
function to obtain the error code for the error.
o If ON ERROR isn't used, any run-time error ends your program.
DESCRIPTION
Enables error handling and, when a run-time error occurs, directs your
program to either branch to an error-handling routine or resume execution.
SEE ALSO
ERDEV ERR ERL ERROR GOTO RESUME