I have to get the rollup count in the output file
Input File:
10|AAAAAA |12345|000002
10|AAAAAA |12345|000002
10|AAAAAA |12345|000003
11|BBBBBB |67890|000003
11|BBBBBB |67890|000003
11|BBBBBB |67890|000003
10|AAAAAA |12345|000002
10|AAAAAA |12345|000003
11|BBBBBB |67890|000003
11|BBBBBB |67890|000003
11|BBBBBB |67890|000003
The records are rolled on 4 th field based on first three fields.. So after rollup based on above input only 2 records will come to output.
Code Used to rollup alone
//SYSIN DD *
**
SORT FIELDS=(01,02,CH,A,
03,10,CH,A,
15,05,CH,A)
**
SUM FIELDS=(21,06,ZD)
**
/*
**
SORT FIELDS=(01,02,CH,A,
03,10,CH,A,
15,05,CH,A)
**
SUM FIELDS=(21,06,ZD)
**
/*
Output File:
The last field should have the number of records rolled into single record. How can we get the count in output file?
10|AAAAAA |12345|000007|3|
11|BBBBBB |67890|000006|2|
Please help me to get the last field in the output file(ie, How many number of records rolled into a single record..!