Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Mon Aug 22, 2011 2:50 pm Post subject: |
|
|
What you are calling "plain numbers" are actually ZD format values, so you can use SUM with ZD fields to sum the values for each key, e.g.
Code: |
OPTION ZDPRINT=YES
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=(5,4,ZD)
|
SORTOUT would have:
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?rs=114&uid=isg3T7000080 _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|