Please post the complete error message. We can't read your mind.
Actually, your OUTREC statement doesn't seem to match what you said you wanted to do. You said you wanted to "replace 022 with 055", but your OUTREC statement includes a record with P'25' and replaces the P'25' with P'45'.
If you're using DFSORT and have the Dec, 2004 PTF, I'd suggest using this OUTREC statement:
I am a beginner in mainframe. I don't know the usage of DFSORT. I know that sort utility is just to sort a dataset. I like to know much about the DFSORT utility. If you can send any link or any document on this, it will be helpful for me.
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 and papers, from: