Question: what is the difference between merge and set in sas?
Answer: While the SET statement reads observations from one data set at the time, the MERGE statement reads from two or more data sets simultaneously. The PDV contains all variables from all data sets: you are combining the observations from the data sets in the MERGE statement into one observation.