I have a flat file RECFM=FB,LRECL=160 which contatins th following data. I would like to add the 3 EMAILS record counts which start in COL 126. I was going to use the OUTREC, with the ADD function, but I wasn't sure of the ADD function format.
I want to copy the first 1 - 125 records and then add the email totals in col starting in col 126.
01 26,192 02 26,192 03 26,192 04 26,192 05 26,192 06 26,192
07 26,192 08 26,192 09 26,192 10 26,192 11 26,192 12 26,192 EMAILS 942,946
01 15,734 02 15,734 03 15,734 04 15,734 05 15,734 06 15,734
07 15,734 08 15,734 09 15,734 10 15,734 11 15,734 12 15,734 EMAILS 566,449
01 5,276 02 5,276 03 5,276 04 5,276 05 5,276 06 5,276
07 5,276 08 5,276 09 5,276 10 5,276 11 5,276 12 5,276 EMAILS 189,955
Thanks