ABORT
|
Function
The ABORT statement is an asynchronous subset statement. You can use the ABORT statement to terminate the current STL program immediately. All outstanding asynchronous conditions will be deactivated and the next program specified for this terminal (on the PATH network definition statement) will begin executing when the current intermessage delay expires.
Examples
onin index(ru,'UNRECOVERABLE ERROR') > 0 then abort
/* Abort this program */
/* if an unrecoverable */
/* error ever occurs. */
Notes
- This statement must be coded directly following the THEN keyword on the ONIN, ONOUT, or ON SIGNALED statement.
- You could use ABORT to handle the unexpected loss of a terminal session.