Incorporating physical file change in dependent program
35 pts.
0
Q:
Incorporating physical file change in dependent program
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)
ASKED: Jul 1 2009  8:51 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
45 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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
Last Answered: Jul 1 2009  5:16 PM GMT by Dsrpg   45 pts.
Latest Contributors: Philpl1jb   24610 pts., RonKoontz   1355 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Siri   35 pts.  |   Jul 1 2009  1:27PM GMT

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?

 

Teandy   3250 pts.  |   Jul 1 2009  3:10PM GMT

<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.

 
0