Consider having the array's first field being your sorting key. Just add the new entries at the end of the array and then use sorta and finish by loading the subfile with non-blank array elements; no need to fuss with a dynamic array.

On 12/31/2014 1:58 AM, x y wrote:
I appreciate the variety of solutions offered--thanks to all who took the
time to respond. My wish for a linked list was partially tongue-in-cheek
but it does have its uses (in many text editors, I believe). I'm a bit
surprised and disappointed that IBM never released an API to provide
greater control over subfiles but I'm not waiting for the announcement.

The variable-length array using LIKEREC appears to be the best solution. I
don't need any sorting capability--as I read through the subfile and load
the array, I can post the "insertions" and then reload the subfile directly
from the array. Since I'll be using this in a high-volume,
moderately-complex data entry application, every CPU cycle counts and I
avoid gold-plating.

Happy 2015!
Booth Martin<br><br>
Skype: booth.martin<br><br>

In wisdom gathered over time I have found that every experience is a form of
-- Ansel Adams

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].