Hi Milenko, To answer your question, the SORT procedure (written as PROC SORT) in the SAS editor window sorts your observations based on any number of variables in your data set. For example, you mentioned dates, you can sort the data by dates, using a BY statement, and keep the first record with a given date in your data set and copy the duplicate records into a new data set using the DUPOUT= option mentioned above. Here is an example: proc sort data=file dupout=dup nodupkey; by var1; run; Note that you can sort a data set by any number of BY variables (second line), not just the date, but other variables in your data set. Hope that helps, Maik.
... View more