ERROR

When the ERROR statement is encountered, Master Template execution stops with an specified error message. No result document is produced.

Definition of the statement is as follows.

ERROR message

The text of the message is logged with an error code USR1000. This can be read from the _itplog KCM Core variable.

ERROR "Inconsistent data found. Unable to produce correspondence."

Use of the ERROR statement causes the KCM Core command ITPRun to fail as if a run-time error occurs. Scripts can detect this condition by testing for a _returncode value of 23.