Specifies the procedure to execute in the event of an error that terminates any other procedure that is running. The %STATUS cell contains the error code and is available to the first command of the restart procedure, so that command should be something like SET %err=%status. You can trap error events and log them, for example. Control returns to the application menu when this procedure completes.
If you are logging errors you might want to take advantage of the USERNAME
environment variable
. To capture its content into your own variable the command would be:
set %username="{$USERNAME}"
MODE RESTART is reset to default status (OFF) each time you do an OPEN
, so you must reestablish it after an OPEN.