Rational Programming Patterns for System z

Generation wizard of online error messages

You can generate the error messages and the help messages indicated on the -GE Lines of Dialogs and Screens, or of Server Dialogs and Servers. You can generate the messages from Dialogs or Server Dialogs only. If necessary, you can take into account a specific error message file. This file replaces the standard file for any input errors automatically detected by the applications.

Selected Screens or Dialogs
This field displays a tree with the Dialog from which you opened the wizard, and its constituting Screens.

The Dialog is selected by default. So the error messages indicated on all of its Screens are generated by default.

To generate the error messages indicated on some of its Screens only, select the appropriate Screens in the tree.

Note: The same applies to the Server Dialog and constituting Servers.
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 -CE Lines and -CS Lines tabs. 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 messages (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 Dialog and Screens (all its Screens or only the selected Screens, depending on the selection in the tree).
    Note: The same applies to the Server Dialog and constituting Servers.
  • C2: Error messages generated through C1 option plus the help function.
    Note: This option is not available on Server Dialogs.
  • C3: Error messages for the Dialog or Server Dialog only.

Terms of use | Feedback

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