Glad you got some use out of it. It's a pretty simplistic implementation, but sufficient for our needs.
Although based on how rapidly the discussion veered into other languages I thought I'd missed your point somehow. Sent from my iPad > On Oct 23, 2013, at 9:43 AM, "Dougie Lawson" <dl1...@gmail.com> wrote: > > Hi Alan, > > I found some test data. > > I found a ready written IMS macro to sort my test data (which was a real > bonus). > > And I got your code sample to run and get the right answer. > > Thank you - I owe you a virtual beer. > > To all the other correspondents - thank you - a simple request has > generated some extremely lively discussion (from some of the usual > suspects). > > Dougie