I have a file of 120 bytes, with X'004D' (decimal 77) at position 82 in it on some records.
My requirement is to sort the file on certain fields and for all records where there is X'004D' in position 82, replace it with X'0037' (decimal 55) and rewrite the rest of the data in output.
I am using a SORT utility to do this, with the following sort card:
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: