I have an OVRDBF command that quit working.

5 pts.
Tags:
CLP
OVRDBF
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?
ASKED: January 15, 2009  4:38 PM
UPDATED: January 15, 2009  6:28 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

The level check is received by the ILE/RPG program LPP018 – you will need to recompile any RPG programs that reference your changed files. The RPG programs store the “Level Id” of the file when they are compiled, if the file is changed after the program is compiled then the Level Id no longer matches and you receive a level check error message.

I don’t recommend using Level Check *NO unless absolutely necessary (for example you don’t have the program source) – this can result in RPG programs writing complete garbage to your database files. By the way, you should always add new fields to the <b>end</b> of your record formats to avoid garbage getting written to the files in cases like this.

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    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
    48,575 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following