error statement

The error statement displays the error message from the messages file and continues execution of the program.

Syntax

error message.num,"parameter"{,"parameter"...}

Description

The parameters are passed to the error message handler and displayed according to the requirements of the item in the messages file.

Example(s)

read item from cust.file,"test" else
   error 202,"test"
end

The error statement in this example displays:

[202] ’test’ is not on file.