BookmarkSubscribeRSS Feed
Ishwarkumar
Obsidian | Level 7

I'm having a data. in that data, there are columns called seat_id and store_id. one seat_id is having multiple store_id. ( want to remove those seat_id which are having multiple stores)

2 REPLIES 2
LinusH
Tourmaline | Level 20
Use sql with a having count(seat_id) = 1 clause.
Data never sleeps
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Proc sort with nodupkey option.  If you post a question, please ensure you post test data - in the form of a datastep, and what the output should look like.  Otherwise you will just get general answers which may or may not relate to your issue.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 962 views
  • 0 likes
  • 3 in conversation