Transcription of MERGING vs. JOINING: Comparing the DATA Step …
{{id}} {{{paragraph}}}
1 Paper 036-2009 MERGING vs. joining : Comparing the data step with SQLM alachy J. Foley, Chapel Hill, NCABSTRACT Which merges files better: the SAS data step or SAS SQL? Traditionally, the only way to merge files in SAS was via the SAS data step . Now SAS provides a Structured Query Language (SQL) facility which also merges files. This tutorial compares and contrasts these two merge facilities. It examines the pros and cons of each merge technique. It looks at data step code to perform specific merges and then looks at the corresponding SQL code to perform the same This tutorial is a SQL primer for the SAS user with some experience with SAS data Steps and the MERGE statement, but little or no experience with SQL. It focuses on MERGING or joining two data sets in any combination with either the data step or SQL.
2 Note that in this merge every record from both input files exists in the output file. Observe that the records A05 (file ONE) and A04 (file TWO) did not have a matching record, yet their information was included in the merged
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}