BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
danielhu
Calcite | Level 5

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

YearISINNameConsolidation code
2000Uk123ABCC1
2000Uk123ABCC*
2000Uk123ABCU1
2001Uk123ABCC2
2001Uk123ABCU1
2001UK345DEFU1
2001UK345DEFC*
2002UK345DEFU*

Table 2

YearISINNameConsolidation code
2000Uk123ABCC1
2001Uk123ABCC2
2001UK345DEFC*
1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

See answer in the other thread

Please just create one thread/discussion per issue.

Data never sleeps

View solution in original post

2 REPLIES 2
LinusH
Tourmaline | Level 20

See answer in the other thread

Please just create one thread/discussion per issue.

Data never sleeps
danielhu
Calcite | Level 5

Linus,

Thanks for pointing that out, but I was told by the administrator to do another discussion because my first one was not loading.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1201 views
  • 0 likes
  • 2 in conversation