|
1. 2nd logical's key is shorter than 1st logical's, with no skipped fields in the key.
E.g., key1=fld1,fld2,fld3
key2=fld1,fld2
In this case, a single logical can suffice, if there are no select/omit needs or data field restriction needs.
2. 2nd logical's key is shorter than 1st logical's, with skipped fields in the key.
E.g., key1=fld1,fld2,fld3
key2=fld1, fld3
In this case, you can navigate the 1st logical as if using the 2nd key. It involves something like the following process:
a. Using fld1, SETLL into the logical and then READ (not READE).
b. Using fld1, the value you retrieved for fld2, & fld3, CHAIN into the logical. If found, process it.
c. Using fld1 & fld2, SETGT into the logical and then READ.
d. Repeat steps a. & b. until EOF.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.