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.

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
  • 2 replies
  • 1717 views
  • 0 likes
  • 3 in conversation