MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2014

Logical Files as path for program independence (was RE: IBM i 7.2 & Power 8)



fixed

Your memory was/is faulty :)

All that's needed is that the LF have an explicitly defined format instead
of sharing the PF format.

This:
A**IORINVSW INVENTORY MASTER FILE
A R IORINVSW PFILE(IORINVMS)
A IRSTAI R
A IDIVSN R
A IWHLOC R
A IITNIM R
A<...>
A K IDIVSN
A K IWHLOC
A K IITNIM


Instead of this:

A**IORINVSW INVENTORY MASTER FILE
A R IORINVM1 PFILE(IORINVMS)
A K IDIVSN
A K IWHLOC
A K IITNIM

Charles


On Fri, Apr 25, 2014 at 4:25 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

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
it?






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

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact