Rational Developer for System z, Version 7.6

Generating the batch error messages

After you have modified the automatic error messages or added explicit messages in the -GE Lines of the Segment's Data Element calls (-CE Lines), you must generate them so that they get recognized by the applications.

Before you begin
You must know whether a specific file must be used. The error messages it contains will replace the standard messages displayed for any input errors automatically detected from the controls specified on the Segment -CE Lines tab.

A specific file is to be used only if the standard messages are not adapted to the applications of the current Repository.

There are five standard messages for errors on Data Elements and three standard messages for errors on Segments:
INVALID_ABSENCE_FOR_THE_FIELD = INVALID ABSENCE FOR THE FIELD
INVALID_PRESENCE_FOR_THE_FIELD = INVALID PRESENCE FOR THE FIELD
INVALID_VALUE_FOR_THE_FIELD = INVALID VALUE FOR THE FIELD
NON_NUMERICAL_CLASS_FIELD = NON-NUMERICAL CLASS FIELD
NON_ALPHABETICAL_CLASS_FIELD = NON-ALPHABETICAL CLASS FIELD
INVALID_CREATION_RECORD = INVALID CREATION RECORD
INVALID_DELETE_MODIFY_RECORD = INVALID DELETE/MODIFY RECORD
END_OF_LIST = END OF LIST
To specify a new specific file, you must create a file with a .properties extension and copy-paste the lines above in it. Then overwrite the error messages (second part of each line, after the '=' sign) as needed.
About this task
You must generate the batch error message file if you have:
  • Modified the automatic error messages by remplacing them vith your own messages or by supplementing them with documentation,
  • And/or added explicit error messages which correspond to errors desribed with specific code.
To generate this batch error message file, you must:
  • Right-click on an open location, the Data Structure entity level, or a Data Structure and select Generate > error messages generation. A generation wizard opens up then, displaying all the Data Structures present in the Repository. If you have opened te wizard from:
    • A Repository or the Data Structure entity level, all the Data Structures are selected by default.
    • A Data Structure, only this Data Structure is selected by default.
    You can select or deselect the Data Structurs with the All or None buttons or by clicking the checkbox located on each Data Structure line. Only the error messages assigned to the selected Data Structure(s) will be generated.
  • Fill in the generation wizard which opens up and click Finish.
Results
The generation generates the error messages in the file (with a .txt extension) you have indicated in the wizard. You will then have to integrate this file into the error messages file used by the applications, via: In both cases, you are responsible for this integration process.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)