I need to add sequence number to each record grouped by key field. First 7 bytes are key fields and input file is FB. The expected output is given below.
Please let me know how to accomplish it and i use SYNCSORT 1.3.2.2R.
Input file:
4529123AAB
4529123ABB
4529123ACC
1293940ABB
1293940ACC
1929303AAB
1929303ABB
1929303ACC
1929303ADD
4529123ABB
4529123ACC
1293940ABB
1293940ACC
1929303AAB
1929303ABB
1929303ACC
1929303ADD
Output:
4529123AAB00001
4529123ABB00002
4529123ACC00003
1293940ABB00001
1293940ACC00002
1929303AAB00001
1929303ABB00002
1929303ACC00003
1929303ADD00004
4529123ABB00002
4529123ACC00003
1293940ABB00001
1293940ACC00002
1929303AAB00001
1929303ABB00002
1929303ACC00003
1929303ADD00004
Note: WHEN=GROUP does not work in this version of SYNCSORT.
Thanks