You must tell use a SORT or MERGE statement to tell DFSORT which key you want to use for the SUM. DFSORT ignores SUM for a COPY operation since there's no key to look for duplicates. For example, if you want to SUM your fields for duplicate keys in positions 11-15, you would use:
It's not obvious from your input example which fields you want to use as keys.
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:http://www.ibm.com/support/docview.wss? ... g3T7000080