You can indicate additional error messages which correspond
to errors described with specific code.
About this task
You indicate explicit error messages for all the errors triggered
by nonstandard controls. You must perform the following tasks:
- Describe these explicit error messages in the -GE lines of a Program
or a Macro. Since only two Programs containing error messages can
be associated with the transaction Data Structure, it is convenient
to define separate Programs (or Macros) just to contain these messages.
Using only one Macro to store the explicit error messages of an application
is advised.
- Associate the explicit error messages with the errors by using
the UT-UPR(n) user error table, which is generated
with the ERUT error variable. Error messages are
positioned according to the error number (example: 001 then 002).
In order to specify the adequate error message, you must use the instruction Move '1'
into UT-UPR(n), where n is the
error message number.
- Associate the error message Programs with the transaction file.
To do so, enter the Comment field of the Definition section
of the transaction Data Structure Overview tab
in the following way:
Table 1. Positions
in the Comment fieldPosition |
Content |
1 |
Blank |
2 |
E (required value) |
3 à 8 |
First program with error messages |
9 à 14 |
Second program with error messages |
What to do next
You must generate the error message file of the Data Structure.