all sas expert, pls help me.. pls view attached files for clearer view..my objective is to gain latest date..pls be informed that there are 2 code for each account.. code 780 - start date code 660 - end date i need to extract data from code 780 to code 660 for picture a, when we sort by date, it turned out that the sequence start from 2 code for 780 and 1 code from 660. when i sort nodupkey descending by code and date, i manage to get latest date for each code ie. code 780 - 20/11/2004 code 660 - 6/8/2009 for picture b, when we sort by date, seems that the code is mix between code 780 and code 660.. if i sort nodupkey descending by code and date, my final date for code 780 is 1/12/2010.. However, My user insist if there is code 660 in between code 780, i need to choose the first code 780 which is 1/5/2009 not the latest date... what the code i should use that can cater for both cases..no code 660 in between and code 660 in between.. to all sas programmer, pls help me to solve this issue..thank you!!
... View more