I/p file format :-
EMP.no EMPname Salary
1 Ram 1000
2 Sam 200
1 Ram 900
3 Tom 200
4 Jam 100
2 Sam 1200
If you find any duplicates (Key fields are Emp No and Emp Name), the Indicator should be set to 'Y', otherwise, 'N'. The output should be in ascending order of Key.
O/P file format :-
EMP.no EMPname Salary Indicator
1 Ram 1900 Y
2 Sam 1400 Y
3 Tom 200 N
4 Jam 100 N
I want to get the above output file from given input, Using sort utility, with any number of steps.
I got the output with out the new field 'indicator'.