
Chapter 14. Statement Reference
277
____________________________________________________________________
Error control statement
RESUME
Causes program execution to resume at a specified location after control is transferred to an
error-handling routine.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
Syntax 1:
RESUME [0]
Syntax 2:
RESUME NEXT
Syntax 3:
RESUME label
Description:
Description:Description:
Description:
RESUME returns control from the error-handling routine to a specified location of the main
program to resume program execution.
• The RESUME statement has three forms as listed below. The form determines where
execution resumes.
RESUME or RESUME 0 Resumes program execution with the statement that
caused the error.
RESUME NEXT
Resumes program execution with the statement
immediately following the one that caused the error.
RESUME label
Resumes program execution with the statement
designated by label.
• The RESUME statement should be put inside the error-handling routine.
Syntax errors:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 71: Syntax error
label has not been defined.
Comentarios a estos manuales