There are two types of batch error messages: the automatic messages which are generated from the controls entered on the Segment description, and the explicit messages which are defined by the user.
Automatic error messages correspond to the controls entered on the Segment -CE Lines.
You can modify these messages or supplement them with texts in the -GE Lines associated with the -CE Lines of Segments.
Only the controls coded on the Data Element calls in Segments cause error messages to be automatically generated. For all the other types of errors, detected by other controls, error messages must be defined explicitly with specific code.
These messages must then be attached to the transaction Data Structure to which they apply. Any Program with appropriate messages can be associated with the transaction. However since two Programs maximum can be associated, it is advised to design a Program or two whose only purpose is to contain these messages.