Q: Merging data sets:
"Where can I find documentation on merging data sets in Stata and SAS?"
A: The SAS and Stata documentation have detailed discussion of merging data sets.
In SAS, search for "merge" in the on-line manual A copy of the most-relevant page is posted here.
In Stata, type "help merge". There's also a nice tutorial here.