I need to know exactly what your input records look like. You didn't use ubb codes so it's very hard to tell. I tried to put the ubb codes in for you, but still couldn't tell what the data actually looks like. Please show your input records with a b for each blank between the two columns so I can see what the data actually looks like. Something like:
or whatever it actually looks like. Then I'll be able to help you.
Yes, that helps. You can use the following DFSORT SORT statement to do what you asked for:
You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's UFF format. Only DFSORT has this function, so if you don't have DFSORT, you won't be able to use it. If you do have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see: