DGL Statement Reference : STOP

STOP

Description
Stops execution of the template.
Typically, a specific condition is tested and the template is stopped if this condition has a value for which further processing is meaningless.
Syntax
stop;
Example
The following example checks whether the specified system_name is valid. If not (if an error has been detected), a message is issued to the dialog area and the template is stopped.

md := stm_r_md (system_name, status);

IF (status <> stm_success) THEN
WRITE (dialog_area, ’Execution Stopped due
to error’);
STOP;
END IF;

See Also