I see no reason why SORT should be involved. A separate program to process the SORT output would be simpler, more flexible, and more robust.
If you insist, an E35 could do it. But as an RFE, I think it's DOA. sas ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN