Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How would you code a merge that will write the matches of
both to one data set, the non-matches from the left-most
data set to a second data set, and the non-matches of the
right-most data set to a third data set.

Answer Posted / lakshmi

data data1 data2 data3;
merge left(in-a) right(in=b);
by subjid;
if a and b then output data1;
if a and not b then output data2;
if b and not a then output data3;
run;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between SAS STATA & SPSS?

1172


In sas admin differentiate between roles and capabilities? : sas-grid-administration

1049


Explain the use of proc gplot? : sas-grid-administration

1042


what is proc Index? and what is proc document?

2763


what is the use of proc sql? : Sas programming

1183


List down the reasons for choosing sas over other data analytics tools.

1329


What is a method to debug and test your SAS program?

1427


name the scheduler for scheduling job and explain the scheduler? : Sas-di

1091


for whom is sas data integration studio designed? : Sas-di

1055


What is maximum number of rows and cols can be handled in SAS?

1667


what is ae onset date n what is RDS

2650


How to create an external dataset with sas code?

1236


What is maximum storage capability of SAS?

1477


What are the different types of sas functions?

1355


How to create a permanent sas data set?

1304