Input file consist of product id and it can repeat multiple times so we need to write sequence no for every record of product id. Whenever product id changes we need to reset the sequence to 1 again.
Input file data
A001
A001
A001
B003
B003
Output file data.
_______
A001 1
A001 2
A001 3
B003 1
B003 2
Watch video Capgemini Mainframe Real Time Scenario Based Interview Question. online without registration, duration hours minute second in high quality. This video was added by user LetsLearn by N S K 21 October 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,645 once and liked it 74 people.