Check the sequence number assigned to the views.
When you are using subfiles that receive data from different views, and if the guide file fields must be updated, it is important to consider the sequence in which the views are read when you assign them a sequence number.
The system actually generates the read instructions according to the sequence of the view numbers.
Example
Assume a subfile *1; it contains file fields for SALES and one file field for PAYMENTS.
The SALES file is to be updated by the program.
You entered the read/write characteristics for subfile *1.
You created a view 01 for the PAYMENTS file and a view 02 for the SALES file (update mode).
Adelia creates in the INITIALIZATION block:
MANAGE_SFL 1 |
Read SALES guide file |
PRESENT PAYMENTS |
display PAYMENTS without reading |
CHAIN SALES |
|
PRESENT SALES |
|
UPD_SFL |
|
END_MANAGE_SFL |
|
This will cause a verification error.
You must sequence the views differently: view 02 for the PAYMENTS file and view 01 for the SALES file (update mode).
The same type of problem can occur when the view has fields in a subfile format or another layout format.