Hello,
In my file I want to add a sequence number to all records but I want them to start with no 1 and grouped by the key.
The file i fixed blocked and recordlength is 10.
The key is the first five digits.
File consists of
12222ABCDE
12233ABDDE
12233JONES
12233ROSIE
13331HELLO
13331RONAN
The result should be
12222ABCDE0001
12233ABCDE0001
12233JONES0002
12233ROSIE0003
13331HELLO0001
13331RONAN0002
Anyone know how I accomplish this ?
Regards,
Mikael