BookmarkSubscribeRSS Feed
Tushar
Obsidian | Level 7

Hi All,

want to remove duplicate observation from data set only in data  step not using any proc not even proc SQL, can we do that?

can first. and last, variable will help in this case? any other way please let me know.

3 REPLIES 3
Reeza
Super User

How are you defining a "DUPLICATE" and how many variables?

And why...

Tushar
Obsidian | Level 7

Duplicate like below one suppose Test is my dataset then

id    Name  address

===============

1     xyz       St  stef road

1     xyz       St  stef road

2     abc       St  josef raod

2     abc       St  josef road

3     pqr        mery road

now all i want to remove duplicare rows like id 1 and 2 and want to keep only single one.. like

id    Name  address

===============

1     xyz       St  stef road

2     abc       St  josef raod

3     pqr        mery road

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 3 replies
  • 1391 views
  • 0 likes
  • 2 in conversation