Art - I see what you are saying . If the date in the table has time stamp may be that will work? Suppose that the format of the tran_date is something like this 12MAY2009:00:00:00.00000 (datetime25.6) data a; input account_number $ tran_am $ tran_dt $; cards; 12345678 14.00 12JAN2012:00:00:00.00000 12345678 12.00 12JAN2012:04:50:18.254602 12345678 9.00 12JAN2012:09:23:00.00000 23456789 13.00 11JAN2012:00:00:00.00000 23456789 15.00 11JAN2012:04:50:18.254602 23456789 9.00 11JAN2012:09:23:00.00000 ; run; proc sql; select distinct account_number, tran_am, tran_dt from a group by account_number having tran_dt = max(tran_dt); quit; Raghs_Newbee - Can you please post sample data?
... View more