Generating a Batch or Dialog Error Message

You must generate an Error Message to take into account the messages that are associated with a Data Structure or some of its Segments (for a Program), or with a Dialog (standard, client, or server) or some of its Screens or Servers. This generation is required if you customized standard error messages, described error with specific code, or indicated online help (for standard or client Dialogs only).

Before you begin

To generate an Error Message, you must have created an instance of the Error Message entity.

Procedure

You can generate an Error Message in two ways:
  • Right-click an Error Message in the Design Explorer view and select Generate > Error message generation.
  • Enter an rpp –generate command line from a command prompt.

Results

The generation produces a .txt file under the Error Message instance in the Design Explorer view. To see its contents, right-click the file and select Open with > Text editor. The generation also produces the corresponding .txtpdp metadata file. This file can be viewed in the Package Explorer view. It must not be edited but must be assigned the same version number as the other generated files.

What to do next

You must then integrate this .txt file into the error message file that is used by the applications. Perform a direct load into an indexed file or a DB2 database, or an update of this file. In both cases, you are responsible for this integration.


Feedback