Using an Error Subroutine

When you write a error subroutine you are doing two things:

  1. Enabling the RPG subroutine error handler

    The subroutine error handler will handle the exception and pass control to your subroutine.

  2. Optionally specifying a recovery action.

    You can use the error subroutine to take specific actions based on the error which occurred or you can have a generic action (for example, issuing an inquiry message for all errors).

The following considerations apply to error subroutines:



[ Top of Page | Previous Page | Next Page | Contents | Index ]