Assuming both files can be treated as fixed-length, you can use a DFSORT job like the following. Note that you SHOULD NOT use the same data set for input and output. You can copy the resulting output file back to the original file if you need to.