Table 1
Postcode
Town
Region
7000
Town1
Region1
Town2
7100
Town3
7120
Town4
Region2
7121
Town5
Region3
Town6
Table 2
ClientID
1
2
3
4
5
6
7101
Town7
I want to merge table 2 with table 1 to identify which regions the patients are from through Postcode and Town columns. Please note different towns could have the same postcode. How should I do this?
It looks like you could use the MERGE statement. What code have to tried? Did you get an error, or wrong result?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!