On Fri, Apr 25, 2014 at 3:27 PM, Chris Bipes <chris.bipes@xxxxxxxxxxxxxxx>wrote:

That is exactly why programmers created Logical Files with just the fields
they needed for their program. You could change the physical but the
logical would remain unchanged. In my opinion that was a bad idea.

On Fri, Apr 25, 2014 at 4:09 PM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:
Why is that a bad idea?

Unless the keys don't already exist in another logical, there's no
additional overhead beyond a few bytes of disk.

Perhaps my memory is foggy (this situation hasn't come up for me in
quite a while), but in order for logicals not to need "refreshing"
(for us that always meant recompiling, but perhaps you can get away
with just CHGLF?) the LF has to be defined with LVLCHK(*NO), doesn't

This has definitely bit us in the rear on a few occasions.
(Underlying PF was changed, no complaint from LF or RPG, resulting in
corrupt data.)

But, let's suppose you accept the risk of not having level checks.
Then I would still wonder why you need the LF. Why can't you just not
level-check the PF and use the PF directly in the RPG? That still
achieves the *ahem* "desired" result of being able to change the PF
without recompiling the RPG, no?


This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page