Rational Developer for System z, Version 7.5

Error messages

VA Pac automatically manages the error messages that will inform users of input errors detected by application programs.

Error messages can be created as needed, or generated upon request, to update the sequential error message file. This file will be used to create application error message files. They can be indexed files or databases, depending on the hardware in use.

The generation is performed by the GPRT procedure, using the GEO generation/print command. In this command, you can specify the generation language (EN or FR) of the error messages, which is by default the language assigned to you.

It generates the error messages for the Screens specified in the GEO command inside the PAC7GL file. Error messages of other Screens found in the PAC7LG file are copied into the PAC7GL file and not modified.

AUTOMATIC ERROR MESSAGES

An automatic error message corresponds to each validation instruction (entered on the Screen Call of Elements) and to each file access.

Error messages are divided into two parts:
  • A message specifying the error type and thus related to the validation or file access type. These standard error messages are stored in one of the System files (however, they can be modified on-site by the Database Administrator).
  • The Segment or Data Element name (except for Segments used in display).

DATA ELEMENTS

Four standard error messages for validations on Data Elements are generated:
  • INVALID ABSENCE FOR THE FIELD
  • INVALID PRESENCE FOR THE FIELD
  • NON-NUMERICAL/NON-ALPHABETICAL CLASS FIELD
  • INVALID VALUE FOR THE FIELD

SEGMENTS

The following standard file access error messages are automatically generated:
  • Segments used for input:
    • INVALID CREATION RECORD
    • INVALID MODIFY/DELETE RECORD
    • Both messages include the Segment’s name.
  • Segments used for display:
    • END OF LIST
These automatically-generated error messages may be customized to your needs in the -GE Lines section of the -G Lines tab.

EXPLICIT ERROR MESSAGES

Only validations (entered on the Screen Call of Elements (-CE Lines tab) ) and file accesses trigger the automatic generation of error messages.

For other error types detected through other validations, error messages must be explicitly entered. This is done on the --GE Lines section of the -G Lines tab associated with either the considered Screen or Dialog, depending on the type of error.

Related tasks
Overriding error messages
Creating explicit error messages
Related reference
-GE Lines section

Terms of use | Feedback

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