Batch error messages: automatic or explicit error messages
There are two types of batch error messages: the automatic messages that are generated from the controls on the Segment description, and the explicit messages that are defined by the user.
Automatic error messages
Automatic error messages correspond to the controls that are entered on the Segment -CE Lines.
- A message that corresponds to the error type and therefore to the type of control being performed. These standard error messages are stored in one of the system files but they can be modified onsite by the administrator. (example: INVALID ABSENCE OF THE DATA ELEMENT)
- The Data Element label (example: ORDER NUMBER)
You can modify these messages or supplement them with Texts in the -GE Lines that are associated with the -CE Lines of Segments.
Explicit error messages
Only the controls that are specified on the Data Element calls in Segments cause error messages to be automatically generated. For all the other types of errors that are detected by other controls, error messages must be defined explicitly with specific code.
These messages must then be attached to the transaction Data Structure that they apply to. Any Program with appropriate messages can be associated with the transaction. However, because two Programs maximum can be associated, it is advised to design a Program or two whose only purpose is to contain these messages.