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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

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