Hi, I am new to SAS and would like some help in filtering this set of data from bankscope which has a problem with duplications. There are instances where a certain bank in a certain year has 3 rows of financial data, hence there is a need to remove/delete duplicates according to the following priority of filtering - C1/C2, C*, U1/U2, U*. From table 1 to table 2.
Table 1
| Year | ISIN | Name | Consolidation code |
| 2000 | Uk123 | ABC | C1 |
| 2000 | Uk123 | ABC | C* |
| 2000 | Uk123 | ABC | U1 |
| 2001 | Uk123 | ABC | C2 |
| 2001 | Uk123 | ABC | U1 |
| 2001 | UK345 | DEF | U1 |
| 2001 | UK345 | DEF | C* |
| 2002 | UK345 | DEF | U* |
Table 2
| Year | ISIN | Name | Consolidation code |
| 2000 | Uk123 | ABC | C1 |
| 2001 | Uk123 | ABC | C2 |
| 2001 | UK345 | DEF | C* |
Linus,
Thanks for pointing that out, but I was told by the administrator to do another discussion because my first one was not loading.
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.