Hi,
I'm going to assume the "result with the correct data" you are looking for is the combined "best view" of the matched data from both sources. Here goes:
Set up connections to your source and target data through the "Data" riser on the left in DM Studio.
In DM Studio, create a new data job
Use a data source node (for database tables) or other data input nodes to connect to the data in each source
Use a Data Union node to bring the data together in one path. Try to align the fields correctly where for example, name data from both sources ends up in the same column. Be sure to add the extra columns from one side or the other where columns don't exist on the other side.
If you are looking for an approximate match ("fuzzy"), use the Match Codes node on each columns that should be part of your matching rules. These match codes can be used as input to the clustering node described below.
Use a Clustering node to create match rules using a combination of match codes where you want fuzziness in the match and non-match code columns where you want exact matches. Choose the sort output option.
Once you have match clusters (these are groupings of records that appear, based on your match rules, to be similar enough to be considered the same data), use a Surviving Record Identification node to build rules to compose a "best record," which is a combination of the values you want from the matched rows, into a single row to represent all the data that has been matched in each cluster. The end result of this node should be single "best records" that represent unique data in your original two sources.
Select a Data Target (Insert) node to choose your SQL Server database as the target and write the results there.
If you haven't tracked down good examples on the SAS support site, one good alternative source is the online proceedings from past SAS Global Forums.
Ron
... View more