hi,
suppose that I have the following table already sorted in this specific way:
| company | date | number |
|---|---|---|
| A | 31/11/2010 | 1 |
| A | 31/11/2010 | 2 |
| B | 22/1/2009 | 2 |
| C | 1/1/2008 | 1 |
I just need the first row for each company-date combination so that the final result is:
| company | date | number |
|---|---|---|
| A | 31/11/2010 | 1 |
| B | 22/1/2009 | 2 |
| C | 1/1/2008 | 1 |
thank you!
omg this is so simple that I just didn't think about it, I just do proc sort with nodupkey by company and date!!
omg this is so simple that I just didn't think about it, I just do proc sort with nodupkey by company and date!!
Thanks for coming back to post your solution, ilikesas!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.