I have 10 large files with fields f1, f2, ...... f100.
What I want to do is :
if f1 = 3 , multiply f30, f31..f90 by -1.
I need to do this processing for all 10 files and the formats and the fields are different for each of them.
If I do this using a cobol program, I will have to spell out each and every field for multiplication. I will need to write a big lengthy program or else multiple programs with same processing.
I wanted to know if I cna do this using a SORT utility or is there any other easier way?
You can use DFSORT's IFTHEN/OVERLAY/MUL functions to do this kind of thing. But if you want more specific help, you need to give the starting position, length and format of the relevant fields (f1, f30, etc).
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: