Home page  
Help >
DDL MODE RESTART Statement
Version 7.11
DDL MODE RESTART Statement MODE RESTART

MODE RESTART [OFF/procedure-name]


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.

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.