*Copyright @ www.statschoice.com;


/********************************************************************************

What is the word meaning of 'merge'?

********************************************************************************/

/********************************************************************************

  1. combine to form a single entity.

********************************************************************************/

/********************************************************************************

Common scenarios where merging (joining rows into a single observation) is required

********************************************************************************/

/********************************************************************************

********************************************************************************/

/********************************************************************************

What does 'MERGE statement' of SAS data step do?

********************************************************************************/

/********************************************************************************

********************************************************************************/

/********************************************************************************

What is 'match merging' in SAS?

********************************************************************************/

/********************************************************************************

********************************************************************************/

/********************************************************************************

Creating some sample datasets

********************************************************************************/

/********************************************************************************

One to One Match Merging

********************************************************************************/

/********************************************************************************

Create a dataset named heightweight by merging height and weight datasets based on the values present in name variable

********************************************************************************/

/********************************************************************************

********************************************************************************/






/********************************************************************************

Create a dataset named hws by merging height,weight and sex datasets based on the values present in name variable

********************************************************************************/

/********************************************************************************

********************************************************************************/






/********************************************************************************

Create a dataset named ahws by merging age,height,weight and sex datasets based on the values present in name variable

********************************************************************************/

/********************************************************************************

********************************************************************************/