Here this statement:- Both files LRCEL = 80.
1> Copy I/p to O/p for first 10 chars.
2> Starting from 11 up to length 7, if I/p file has "PRIYESH" change it to "AGRAWAL"
Else- Copy from I/p file as it is starting from 11 up to length 7.
3> Copy I/p to O/p for rest of the 63 chars starting from column #18.
So basically this would change all the occurences of "PRIYESH" to "AGRAWAL" from column 18 and copy rest.
This may be syntactically incorrect... I have not run this before....
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: