Hi, There are lot of methods available for merging 2 datasets. But which method you use is based on the type of data and number of observation it has. 1. PROC SQL; SELECT VAR1,VAR2,T1.VAR3,VAR4,VAR5 FROM TABLE1 AS T1,TABLE2 AS T2 WHERE T1.VAR3=T2.VAR1; QUIT; In PROC SQL itself there are many methods available (Inner Join, Left Join, Right Join) and apart from that you can use SET operators (EXCEPT,INTERCEPT, UNION) to merge datasets. (But each one serve different purpose). 2. SET statement a) DATA dataset-name; SET sas-dataset; SET sas-dataset; RUN; b) DATA dataset-name; SET sas-dataset; SET sas-dataset KEY=index-name; RUN; When you specify the index name in the KEY=option, processing changes from sequential to direct access, and SAS reads only the observation that satisfies the lookup. Hope this answers your question. Thanks Dhanasekaran R
... View more