Rational Developer for System z

Adding explicit error messages

You can indicate additional error messages which correspond to errors described with specific code.

About this task

You indicate explicit error messages for all the errors triggered by non-standard controls. To do so, open the -GE Lines subtab of the -G Lines tab in the Data Structure or Segment editors. You must:
  1. Describe these explicit error messages with -GE lines in a Program or a Macro. Since only two Programs containing error messages can be associated with the transaction Data Structure, it is convenient to define separate Programs (or Macros) just to contain these messages. Using only one Macro to store the explicit error messages of an application is advised.
  2. Associate the explicit error messages with the errors by using the UT-UPR(n) user error table, which is generated with the ERUT error variable. Error messages are positioned according to the error number (example: 001 then 002). In order to specify the adequate error message, you must use the instruction Move '1' into UT-UPR(n), where n is the error message number.
  3. Associate the error message Programs with the transaction in the Comment field of the Definition section of the transaction Data Structure Overview tab in the following way.
    Table 1. Positions in the field
    Position Content
    1 Blank
    2 E (required value)
    3 à 8 First program with error messages
    9 à 14 Second program with error messages

What to do next

You must generate the error message file of the Data Structure.

Terms of use | Feedback

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