Rational Developer for System z, Version 7.5

Overriding error messages

You override an automatically-generated error message in the -GE Lines section of the -G Lines tab.

Two line types can be described:
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, 3, 4 or 5)
    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

VA Pac generates error codes and corresponding messages for file access errors.

You may override these messages on the -GE Lines of Screen.

Two types of lines must be described: type S and type U.
Note: Several U lines can follow a singleS line.
  • Type = S (Segment call)

    Positions in the Description field:

    Position Contents
    1 to 4 Segment code
    5 Blank
    6 category code (required if the same Segment code is used in several categories):
    • Screen-top : blank,
    • Repetitive : R,
    • Screen-bottom : Z
    7 Segment’s rank in the category (required if the same Segment code is used several times in a category).
  • Type = U (error message)

    Positions in the Description field:

    Position Contents
    1 Segment's use category:
    • F for reception
    • G for display
    2 to 3 Blank
    4 Error type code
    • 8 record found, (invalid creation)
    • 9 record not found, (invalid modification, end of file, etc.).
    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:
         S CD10                                            
         U F  8 PRODUCT REFERENCE NUMBER ALREADY ASSIGNED 
         U G  9 END OF SEARCH FOR THIS STATE                          
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.

Related concepts
Error messages
Related reference
-GE Lines section

Terms of use | Feedback

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