what is the difference between SET and MERGE?

Answer Posted / chiranjeevi

MERGE:Merge statement is used to combine two datasets,The
two datasets can be combined by matching variable should by
specify by using statement calld 'by' in the data step.


SET:SET statement concatenates the two data sets by matching
variable.

Difference:when ever we are using the merge statement it
will over writes the existing and the similar observations
across two datasets,But where as the set statement doesn't
overwrites it.

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is factor analysis?

661


what is snowflake schema? : Sas-di

694


what are the best practices to process the large data sets in sas programming? : Sas-administrator

537


what is data governance? : Sas-di

625


what is business intelligence? : Sas-bi

583






If you were told to create many records from one record, show how you would do this using array and with proc transpose?

798


what is the difference between unique key and primary key? : Sas-di

594


What is the difference between input and infile statement?

683


What is the maximum and minimum length of macro variable

652


explain about data integrator metadata reports? : Sas-di

560


What is the difference between %local and %global? : sas-macro

668


How does proc sql work?

615


What is a pdv and what are its functions?

601


what is the function of catx syntax? : Sas-administrator

649


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2006