:STOP
Use the :STOP script statement to cancel the processing of a script, with or without issuing an error message. :STOP cancels the activation of the object that contains the script and writes all open transactions to the AE database.
Important! Do not use :STOP on the Post Process page. To make changes via scripts on the Post Process page, use :MODIFY_STATE instead.
Note: For more information on transaction handling, see Script Processing.
Syntax
: STOP [Stop Mode]
Parameters
| Parameter | Description | Allowed Values |
|---|---|---|
| Stop Mode
(Optional) |
Defines whether to issue an error message when cancelling. |
|
Examples
The following example activates a Job and returns an error message if the activation fails.
: SET &ACTNR# = ACTIVATE_UC_OBJECT (JOBS, MM)
: IF &ACTNR# = "0"
: STOP MSG, 50, "Error in activating the job MM."
: ELSE
: PRINT "The job MM was activated with the activation number &ACTNR#."
: ENDIF
See also: