I added 3 fields to each of the files referenced in the OVRDBF command and then recompiled all 5 CLP's that have the same OVRDBF command in them. Here is a copy of the CLP....
CHGVAR VAR(&TITLE) VALUE('SETLMAST' *CAT &YEARC)
CPYF FROMFILE(*LIBL/&TITLE) TOFILE(SM1099) +
MBROPT(*REPLACE) FMTOPT(*MAP *DROP)
OVRDBF FILE(SETLMAST) TOFILE(*LIBL/SM1099)
here is the error messages i get.....
223 records copied from member SETLMAST08.
Level check on file SM1099 in library BOBR with member SM1099.
Error message CPF4131 appeared during OPEN for file SETLMAST.
Function check. RNX1216 unmonitored by LPP018 at statement 0001000001,
instruction X'0000'.
Error message CPF4131 appeared during OPEN for file SETLMAST (C S D F).
Error message CPF4131 appeared during OPEN for file SETLMAST (C S D F).
I was able to get it to work using LVLCHK *NO but that is not reliable.
What can i check or change to make it work without LVLCHK *NO?
Software/Hardware used:
ASKED:
January 15, 2009 4:38 PM
UPDATED:
January 15, 2009 6:28 PM
In additon, you generally don’t need to recompile the CL unless it uses the file in a DCLF command.
You can get the file Level identifier from the bottom of the DSPFD command
and compare it with the program Format level Identifier for the program with DSPPGMREF.
When you compile the RPG make sure that the new version of the file is the first version in the library list.
Phil