Rational Developer for System z, Version 7.6

Overriding the automatic error messages

You can override the automatically-generated error messages be entering new messages in the -GE Lines section of the -G Lines tab.

About this task
Two line types must be described:
And possibly:
  • Type = C for comments, attached to the error message which directly precedes it.
DATA ELEMENTS
  • Type = F (Data Element call)

    Positions in the Description field:

    Position Contents
    1 to 6 Data Element code
  • Type = U (error message)

    Positions in the Description field:

    Position Contents
    1 to 3 Blank
    4 Number of error type to be replaced for the Data Element:
    • 2 for an invalid absence,
    • 3 for an invalid presence,
    • 4 for an erroneous class,
    • 5 for an erroneous value.
    5 Blank
    6 Error message
  • Type = C (comments on the error message)

    Positions in the Description field:

    Position Contents
    1 to 5 Blank
    6 Comment
    Example:
      F NUCLI                                           
      U    2 CLIENT NUMBER IS REQUIRED                  
      U    5 CLIENT NUMBER MUST BE > 10001              

SEGMENTS

Notes: You can replace an automatic error message on a single line, on the -GE Lines section. On a U-type line, the rank of a Data Element on the Screen Call of Elements (-CE Lines tab) must be entered in positions 1 - 3; the rank of a Segment on the Screen Call of Segments (-CS Lines tab) must be entered in positions 2 - 3.

The rest of the Description field is entered as indicated above. Please note that this method implies specifying the error codes again when a Data Element is added to or deleted from the Call of Elements, or when a Segment is added to or deleted from the Call of Segments.

What to do next
You need to generate the error message file.

Terms of use | Feedback

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