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

What does the trace option do?

1110


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1275


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1286


How many data types are there in SAS?

1078


: and & modifiers.

1396


what are sas bi dashboard components? : Sas-bi

1174


How we can call macros with in data step? : sas-macro

1125


What commands are used in the case of including or excluding any specific variables in the data set?

1097


how do you want missing values handled? : Sas programming

959


what techniques and/or procs do you use for tables? : Sas programming

1066


what is the difference between infile and input? : Sas-administrator

1144


What are the five ways to do a table lookup in sas? : sas-grid-administration

1064


how does sas handle missing values in a merge? : Sas programming

1048


what is hierarchy flattening? : Sas-di

1083


Describe crosslist option in tables statement?

1224