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
The result should be
Anyone know how I accomplish this ?