Rational Developer for System z

Creating explicit error messages

You create explicit (or user-defined) error messages in the -GE Lines subtab 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 specific 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)
      Table 1. Positions in the Description field
      Positions Contents
      1 - 6 Data Element code
    • Type = U (error message)
      Table 2. Positions in the Description field
      Positions Contents
      1 - 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 with specific code.
  • Dialog-related errors:
    • Type = U (error message)
      Table 3. Positions in the Description field
      Positions Contents
      1 - 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 with specific code.

What to do next

You must generate the error message file.

Terms of use | Feedback

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