SETERR Verb - Set Global Error Trap
Syntax
SETERR lineref
SETERR 0
Description
The SETERR verb sets a global error trap. If a local error trap does not handle an error, the SETERR trap is used. See Error Trapping Rules for additional information.
Parameter |
Description |
---|---|
lineref |
Program line branch to be used if the global error trap is used. Program control returns to the error-causing statement upon execution of a RETRY. |
SETERR 0 disables the SETERR trap. RESET, RUN, LOAD, BEGIN, CLEAR, END, or STOP set SETERR to 0.
Examples
1000 SETERR 9500