Previous Topic: Manage ErrorsNext Topic: Display Error Message with OPTION Command


Display an Error Message

You also can use an OUTPUT statement to display an error message on the screen. Follow the OUTPUT statement with an INPUT command to "freeze" the error message on the terminal until the user presses an action key.

OUTPUT 'Can''t go on',2/16  DISPLAY ERROR MESSAGE ON SCREEN
INPUT                       WAIT FOR ACTION KEY