Link to home
Start Free TrialLog in
Avatar of Wonderwall
Wonderwall

asked on

Removing duplicates based on 2 columns in SAS

Hi, How do I remove duplicates based on 2 columns in SAS?
SOLUTION
Avatar of bradanelson
bradanelson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wonderwall
Wonderwall

ASKER

I did this
proc sort data=test ; by ID AGE ; run ;
proc sort data=test nodupkey ; by ID AGE ; run ;
and it got rid of the duplicates for the first record only, all the rest were kept
It should have deleted any duplicates of the combination of ID and AGE, are you sure it didn't work?
yes, I looked at my output and it only worked on the first record
Can you provide sample data to help troubleshoot your issue.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial