Oh gosh, it would be a very reasonable programming task to enhance a sort program to have multiple input files that were allocated with separate DD statements (SORTIN01, SORTIN02, ... ?) and to read them in succession as though they were a single file.
If Gilbert's exit can do it, surely the roomful of programmers at Syncsort or IBM could do it. Charles P.S. Dorting multiple files, on the other hand, I'm not so confident about that. <g> -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Reda, John Sent: Wednesday, January 31, 2007 10:46 AM To: [email protected] Subject: Re: Dorting multiple VSAM and PS files I think the problem that you are encountering is an operating system restriction. If you OPEN a file with a VSAM ACB, when the end of data condition is encountered VSAM code is not prepared to close the VSAM data set, clean up the VSAM control blocks, convert the ACB to a DCB (not sure how this would be done) and reopen the file using the converted DCB. The reverse is also true for physical sequential to VSAM concatenation. About the only way this would be possible is for the program to break down the concatenation using dynamic allocation, rebuild multiple files without the sequential to VSAM conversions, and then programmatically work through the newly dynamically allocated files. This would be an extremely messy situation. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

