BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Subutai
Calcite | Level 5

Hello,

 

I'm trying to find matches from one column in a dataset to another column in a different dataset, using SAS Enterprise Guide 7.1. My plan was to import the two datasets and then perform a series of tasks to find matches. Since I'm a novice using SAS, I am not sure what specific tasks I should be performing and what the flow of the tasks should be to achieve this goal. Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

PROC SQL can do this.

 

 A DATA step merge can do this.

--
Paige Miller

View solution in original post

5 REPLIES 5
PaigeMiller
Diamond | Level 26

Can you define "matches"??? Can you give us a little example???

--
Paige Miller
Subutai
Calcite | Level 5

Sure, when I say "matches" I'm referring to instances where an ID Number from one dataset can also be found in the other dataset.  

PaigeMiller
Diamond | Level 26

PROC SQL can do this.

 

 A DATA step merge can do this.

--
Paige Miller
Subutai
Calcite | Level 5

Thank you for the assistance, I'll try these out. Sorry if this was an obvious question, I'm still learning. 

NataljaK
Obsidian | Level 7
Hi,

The one way is to join two table (Add Tables in Query Builder) by this column using one of the: Left Join, Right Join or Full Outer Join – and putting the fields from both files to new file.
Then you can see where the same fields are in both tables.
Best regards

Natalja


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