Input file has multiple records with the same key (they can change). No more than 25 records per key.
Output file will have single record per key with occurences (25)
I also need to populate counter on record on output record in position 15
Input file:
-
---+----1----+----2----+----3----+----4----+----5
AAAA00001 R01X001
AAAA00001 R01X002
AAAA00222 R02X001
AAAA00222 R02X002
AAAA00222 R02X003
AAAA33333 R03X001
AAAA33333 R03X002
AAAA33333 R03X003
AAAA33333 R03X004
AAAA33333 R03X005
AAAA00001 R01X001
AAAA00001 R01X002
AAAA00222 R02X001
AAAA00222 R02X002
AAAA00222 R02X003
AAAA33333 R03X001
AAAA33333 R03X002
AAAA33333 R03X003
AAAA33333 R03X004
AAAA33333 R03X005
Output file will be like this:
Counter is highlighted in yellow.
---+----1----+----2----+----3----+----4----+----5----+--
AAAAA00001 002 R01X001 R01X002
AAAAA00222 003 R02X001 R02X002 R02X003
AAAAA33333 005 R03X001 R03X002 R03X003 R03X004 R03X004
AAAAA00001 002 R01X001 R01X002
AAAAA00222 003 R02X001 R02X002 R02X003
AAAAA33333 005 R03X001 R03X002 R03X003 R03X004 R03X004
If it's possible maybe somebody has similar code to show me.
Thank you very much in advance.....
BTW - SYNCSORT FOR Z/OS 1.4.0.1R