It depends on whether you actually mean in "a single step" or in "a single pass". You cannot sort on different keys in a single pass over the data. You can sort on different keys in a single step using DFSORT's ICETOOL. Here's an example:
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Is there some business reason to create 3 entire copies of the original input?
Please keep in mind that in my worlds, "regular" files have multiple hundred million records. One that came in yesterday is 6,300 cyls of dasd. If we were to try to create 3 "sorted" copies, the dasd people would be looking for us to do bodily harm