Rational Developer for System z, Version 7.6

Creating explicit error messages

You create explicit (or user-defined) error messages in the -GE Lines section of the Dialog or Screen -G Lines tab.

About this task
You must create explicit error messages if you have described non-standard errors with specfic code. There are two types of explicit error messages: Errors on Data Elements (related to a Screen), and User errors (related to a Dialog):
  • ERRORS ON DATA ELEMENTS
    You must enter two types of lines : an F-type line, followed by one or more U-type lines. You can also specify comments on C-type lines.
    • 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 Error code (alphanumeric character except '0' and '1')
      5 Blank
      6 Error message
      Example:
         F NUCLI                                           
         U    3 THIS CLIENT NUMBER IS NOT AUTHORIZED       
         U    A THE TYPE DOES NOT CORRESPOND TO THIS CLIENT
    Note: To be taken into account, the error must be implemented via specific code.
  • DIALOG-RELATED ERRORS
    • Type = U (error message)

      Positions in the Description field:

      Position Contents
      1 to 4 Error code (specific code)
      5 Blank
      6 Error message
      Example:
           U AV01 DATE AND NATURE OF NOTICE MUST CORRESPOND 
    Note: To be taken into account, the error must be implemented via specific code.
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)