HP RPG/XL Programmer's Guide (30318-90001)

4- 78
Handling Run-Time Errors
When you run a program that uses VPLUS or RSI, run-time errors are
handled differently from programs that do not use them. When using
VPLUS, an error message is displayed in the message window and for RSI,
it is displayed on a separate screen. VPLUS and RSI then reset the
function keys so that the user can select an error response. The
function keys and their responses are:
Function Key: Response
F1 Continue execution
F2 Skip the input record containing the error and
continue execution
F3 Terminate the program by executing the normal
termination code
F4 Terminate the program immediately
F5 Terminate normally and print an error dump
F6 Terminate immediately and print an error dump
You can specify the function key responses within your program instead of
letting the user select them. Use the Header Specification to do this.
For each error you anticipate, enter the response in columns 56-71.
Figure 4-42 shows how to suppress the error message for arithmetic
overflow and to continue program execution when arithmetic overflow
occurs.
Figure 4-42. Specifying a Run-Time Error Response
Comments
1 This line specifies special error handling for arithmetic
overflow errors.
Column 55 contains N to suppress the display of arithmetic
overflow error messages.
Column 65 contains 0 to suppress arithmetic overflow messages
and to continue program execution.