Previous Topic: Display an Error MessageNext Topic: Write a Signon Program for Multiple Applications


Display Error Message with OPTION Command

If an ACL/E processing error occurs, you can use an OPTION command to continue execution at a specified label with a RESUME command. The error code and message will be saved in the predefined variables &ERR_RC and &ERR_MSG.

You could use the OPTION command to display an error message:

       OPTION ERROR,ERROR1
             ... 
ERROR1 RESUME 
       OUTPUT 'ACL/E Error',2/16  ANNOUNCE ERROR 
       OUTPUTC '&ERR_MSG',3/16    DISPLAY ERROR MESSAGE ON SCREEN
       INPUT                      WAIT FOR ACTION KEY 
             ...