There are several ways to do this with DFSORT with BUILD such as using p1,2,C':',p2,2 or p,4,EDIT=(TT:TT)
If you want more specific help, you need to give more specific requirements. Show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of your the input file.
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:http://www.ibm.com/support/docview.wss? ... g3T7000080