MIDRANGE dot COM Mailing List Archive



RPG400-L » November 2009

Re: Sorting an arrray data structure into a subfile



Hello David,


This will not work as the index seems to be sharing the space occupied by the InfoSF.


Yes, that's what the OVERLAY keyword does. It causes two fields to share the same space.

If you don't want Index and InfoSF to occupy the same space, don't tell the compiler to overlay one with the other.

I'm not sure that I understand what you're attempting to do here. What is "Index"? If it's the RRN of the subfile, then there's absolutely no need to sort it if your goal is simply to reverse the order. Just load it into the array, then read the array backwards...





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

This mailing list archive is Copyright 1997-2012 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