BookmarkSubscribeRSS Feed
MB1
Calcite | Level 5 MB1
Calcite | Level 5

Hello everyone,

 

With the help of instructions (http://support.sas.com/kb/40/338.html) I made a query to get a list with only duplicate values of a column. I put a filter on another column to only select those values that are greater than 0.

 

When I run it, the filter does not work. I do get values of 0...

 

What could I be doing wrong?

 

Thanks in advance!

2 REPLIES 2
Reeza
Super User

If using AND/OR it may not be resolving the way you expect. 

More likely it's a numerical precision issue and the number is 0.0001 or something. Try rounding the number and then filtering. 

ScottBass
Rhodochrosite | Level 12

Post the code that EG generated.  

 

See also https://github.com/scottbass/SAS/blob/master/Macro/get_dups.sas, it may give you some ideas.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.

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

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