The reason it needs to have two separate ODPs to the file is that it needs to be able to not only retrieve records by either key or RRN (assuming the file is keyed), but to sequence through the records either by RRN or by key, at will.

It already does use an OVRDBF SHARE(*YES) if the user asks it to do an OPNQRYF, and processes the file just fine (but in that case, it's already opened in keyed mode first, by OPNQRYF itself, and so it only loses the ability to sequence through the queried file by RRN).

Curiouser and curiouser.


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by 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 on our policy page. If you have questions about this, please contact [javascript protected email address].