Warning: This topic does not affect the C generator.
If you call a program and the following message is displayed:
"CPF4101 received in Open"
"File #xxxxx or xxxxxD not found in *LIBL"
It means:
- That your xxxxx file is defined as having duplicate keys and that it is updated in the model (using the STORE, PLACE, CLASSIFY instructions). Since the updating cannot be performed on a file with duplicate keys, Adelia reacts the following way:
- The re-reading of the record (STORE or PLACE instructions) is done using direct access (Adelia saves the sequence number when running the PRESENT instruction); Adelia does it during the RPG generation by declaring a second name for your file (it is already defined by "access by key").
- This name has been defined in the file characteristics screen (file glossary).
Consequently, the programmer must enter the OVRDBF command before starting up his program.
OVRDBF FILE(file name for direct access) |
TOFILE (file name) |
file code |
file name on disk |
"update in direct mode" |
|
defined in the glossary. |
|
Note: This is only possible in RPG generation.
-
- The xxxxx file may not exist. In this case, verify the list of libraries or make sure that the file compilation/generation was successful; for further information, see the File Generation Failure topic.
Click here for the detailed explanation of the 4GL instructions.