:STOP

Use the :STOP script statement to cancel the processing of a script. The script statement lets you cancel the script with or without issuing an error message.

Important! :STOP cancels the activation of the object that contains the script. Do not use :STOP on the Post Process page.

Note: This script statement causes all open transactions of the script to be written to the AE database. For more information, see Script Processing.

Tip: To effect changes via scripts on the Post Process page, use the :MODIFY_STATE script statement.

Syntax

:STOP[Stop Mode]

Parameters

Example

The following example returns an error message that informs you whether a job was correctly activated or not.

: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:

seealso

Error Handling in Scripts

Notification (CALL)

User Return Codes of Executable Objects

System Return Codes of Executable Objects

Script Elements for Error Handling