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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 675 views
  • 0 likes
  • 2 in conversation