Steve, the original code was making calls to an internal QuickSort routine written in assembler but I got to a point where the code abended when the input to the sort was too large so I decided to look at using DFSORT instead. I now have a combination of the two in place where small sorts use the internal QuickSort and bigger ones triggers calls to DFSORT. Not very elegant maybe but the next generation programmers need something to do as well ;)
Thanks anyway. Cheers, Staffan ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

