Rational Programming Patterns

Generation wizard of batch error messages

You select from a Data Structure the Segments whose error messages are to be generated in a text file. These error messages inform the users of any errors detected by the application Programs.

Selected Data Structures
This field displays a tree with the Data Structure from which you opened the wizard, and its constituting Segments.

The Data Structure is selected by default. So the error messages indicated on all of its Segments are generated by default.

To generate the error messages indicated on some Segments only, select the appropriate Segments.
Limitation:

A called Segment can call another one. A maximum of 4 levels of nesting are possible.

Destination
Enter or select the file (with a .txt extension) which will contain the generated error messages.

You can click Browse to easily locate the file.

You can enter a file name without an extension.

If the file you have indicated does not exist yet, it is automatically created. However, all the folders which lead to the file must exist.

You must then integrate this file into the error messages file used by the applications. You can load into an indexed file or a DB2 database or update this file. In both cases, you are responsible for this integration process.
Specific error message file
This field is optional. You enter it only if you have already created a specific file for the error messages. If so, click Browse to easily select this file, which must have a .properties extension.

This file contains the error messages which replace the standard messages displayed when the application programs detect input errors. The errors are detected by the controls specified on the Segment -CE Lines tab. This file is created only when the standard messages are not appropriate.

The specific file must then contain the following lines, with some or all the labels (second part of each line) modified:
Figure 1. List of the standard error messages to be customized
2 = INVALID ABSENCE FOR THE FIELD
3 = INVALID PRESENCE FOR THE FIELD
5 = INVALID VALUE FOR THE FIELD
4Z = NON-NUMERICAL CLASS FIELD
4A = NON-ALPHABETICAL CLASS FIELD
8F = INVALID CREATION RECORD
9F = INVALID DELETE/MODIFY RECORD
9G = END OF LIST
DU = INVALID CREATION RECORD
NF = INVALID DELETE/MODIFY RECORD
EN = END OF LIST
AB = ABSENCE OF RECORD
Language code for error messages
You can specify the generation language (EN or FR) of the error messages.
Generation option
Select one of the following options:
  • C1: Error messages defined for the Data Structure, and Segments (all the Segments or the selected Segments; depending on the selection in the tree).
  • C2: Error messages generated through C1 option plus documentary help messages.

Terms of use | Feedback

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