Here my problem is how the sort technique is doing internally because the
customers 11111,111113 and 111115 have selected from first sequence and remaining two cusomers are selected from next seq.
Really i couldnt understand how the SORT will do internally.
Here my problem is i am having all the customers in one file for 12 months, so here some times customer no's are duplicate. so i need to select latest customer.
Can anyone help out how to sort this prob.
Thanks in advance.
When EQUALS is in effect with SUM FIELDS=NONE, DFSORT selects the first record of each set of duplicates. When EQUALS is not in effect with SUM FIELDS=NONE, DFSORT can select any record of each set of duplicates. So if you add:
you'll get the first record of each set of duplicates.
so i need to select latest customer.
If by the "latest" customer, you mean the last record of each set of duplicates, you can use a DFSORT/ICETOOL job like this:
If that's not what you want, then you need to explain clearly what you do want and show an example of the input records and what you want for output.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: