The STOP-AFTER phrase specifies a time-out value for a DO, FOR, or REPEAT block. This is the syntax in the context of a DO block :

Syntax

DO ON ERROR UNDO, LEAVE STOP-AFTER expression:
   <body of the DO block>
END.

The integer expression specifies the number of seconds each iteration of a block has until a time-out occurs. If a time-out occurs, the AVM raises the STOP condition.

This STOP condition can be handled like other STOP conditions (for example, by using an ON STOP phrase), or it can be specifically handled by using a CATCH block for a Progress.Lang.StopAfter object. Specifically handling the condition is the recommended approach since it is the only way to know that the STOP condition was indeed raised by the STOP-AFTER and not by some other unexpected circumstance occurring within the block.

For more information on using this feature, see the STOP-AFTER phrase on the DO, FOR, or REPEAT statements in the ABL Reference.