I need to filter latest records for each employee in PS file. How can I achieve this using DFSORT?
Records in PS file as Employee id(6 digits) and date(8 digits). I need to filter latest records of each employee keeping the original order that the employees appeared in.
example : i/p file:
10000120150101
10000320130101
10000120160101
10000220170101
10000220160101
10000320160101
o/p file:
10000120160101
10000320160101
10000220170101
Please share the answer too if you are not getting the same order but latest records.