I have one file (FB,RECL=80) which has one field whose value is in the format like 999,999.99
I wanted to do summation of this field before which I wanted to convert that to 99999999. I used below in sort but it is giving error S0C7
My 2 cents... If you are creating input file for this process,using SORT and OUTREC, why not use OUTFIL FNAMES to save one pass? Something like below for 80 byte fb file. All you have to do is replace OUTREC with OUTFIL FNAMES and add another OUTFIL FNAMES with fields you want.
//SYSIN DD *
2,11,ZD,EDIT=(III,III,III.IT),LENGTH=14, --> File created from previous step
OUTFIL FNAMES=OUT2,BUILD=(1,80) --> File that you need in the original post.