BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
i want to delete observations by their frequency. I don't know if I need to do a proc freq and then to do the deletion base on the results...

Thanks,
1 REPLY 1
Olivier
Pyrite | Level 9
You can follow these steps :

1) create a query on your dataset
2) in the SELECT/SORT tab, keep all the columns you need at the end
3) in this tab, choose a value in the SIGMA drop-down list (just right to the check boxes) for the variable of which you want to use frequencies
4) drag and drop one more time this particular variable in the SELECT/SORT TAB, and give it a value in the SIGMA list
5) rename this last column COUNT
6) go to the GROUP FILTERS tab, and build a condition using the newly created COUNT variable (should be at the very bottom of the list on the left).

I hope it solves your problem.

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
  • 1 reply
  • 1012 views
  • 0 likes
  • 2 in conversation