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

Differentiate between proc means and proc summary.

1053


How would you identify a macro variable?

1086


Enlist the syntax rules followed in sas statements.

1081


What is the difference between %put and symbolgen? : sas-macro

1236


How do dates work in sas?

1132


Have you ever used the SAS Debugger?

1753


Mention what is SAS data set?

1130


What is the difference between where and if statement?

1112


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5071


How does proc sql work?

1076


What is program data vector (pdv)?

1285


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

1402


explain about sas business intelligence? : Sas-bi

1136


what is sas business intelligence? : Sas-bi

1173


name several ways to achieve efficiency in your program? : Sas programming

1062