ABORT prompt statement

Use the ABORT statement to return a value to the calling state table when there is an invalid completion of a prompt. The value is stored in the System : Play prompt status system variable. If a string variable is specified, it should contain only numerals and the characters + and -. After an abort, any statement following the ABORT statement is not executed.

ABORT always returns to the primary state table. When prompts are nested, use the RETURN statement to return to the calling prompt.

Syntax



Note: Use the RETURN statement (described in RETURN prompt statement) to return control to the calling state table when there is a successful completion of a prompt.

Example

 ABORT (SV126);

SV126 is the Message : Transaction ID system variable. Its value is returned if the prompt has an invalid completion. In this case, the contents of the variable can indicate the reason for the abort condition.