Incorporating physical file change in dependent program

55 pts.
Tags:
Level Check
recompile
RPG
Hi, is it possible to incorporate physical file changes (using the new level check identifier) without recompiling the rpg? (Say we have the physical file to be changed, but we do not have the source for the rpg, only the object)

Answer Wiki

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

If you change the source and then change the PF with no level check you should not have to recompile the RPG program
Unless something has changed in a later release level that I am not familiar with I believe this will only work if the field you added is alpha. If this is a numeric field I believe you will get an error unless you re-compile the program.
Dotty S
————————–
That will generally work, provide all of the changes are after the columns used by the program when it was compiled. So if the file had colA, colB, and colC you should not delete or change the type or size of these columns but you can add a colD and set the level check to no.

Setting the level check to no is generally a poor practice but it sound like you haven’t got a choice.

Or you could create a new file with the same keys for the additional data and keep the level checks *yes.

Phil

————————————————
No, use the command dspprgref on the program. If the DSPPGRREF has file level check value for this file and
the file has use level check *yes then if the levels don’t match the program will throw an error.

Phil

Discuss This Question: 4  Replies

 
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
  • Siri
    Hi Phil, thanks for your reply. What if we do not have the source to the rpg program which uses this PF? (We have only the object) Is there a means by which the object can make use of the new level check id?
    55 pointsBadges:
    report
  • Teandy
    <quote> Is there a means by which the object can make use of the new level check id? </quote> Not really. The signature is retrieved during the compile process. About the only options you have is to: 1.) contact the original programmer/vendor for the source 2.) or, depending on how it was compiled, you can put the program in debug and copy and paste the source to another member.
    5,860 pointsBadges:
    report
  • azohawk

    use the chgpf command to change the pf.

     

    385 pointsBadges:
    report
  • BigKat
    ...Unless something has changed in a later release level that I am not familiar with I believe this will only work if the field you added is alpha. If this is a numeric field I believe you will get an error unless you re-compile the program...

    You can add numeric fields to the file without recompiling as long as the last field is alpha.  Was in a similar situation (program with no source) and had to add a "dummy" 1A field after the numeric field

    7,935 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