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 / reddy

data both left_only right_only;
merge dataset1(in=a) dataset2(in=b);
by variable;
if a and b then output both;
if a and not b then output left_only;
if b and not a then output right_only;
run;

i think these is the easy way of writing the code,if any
one nows other please specify.thanks!

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you ever used the SAS Debugger?

1819


What is the purpose of _character_ and _numeric_?

1108


How can sas program be validated?

1072


what is broad cast agent? : Sas-bi

1118


Describe the function and utility of the most difficult SAS macro that you have written?

2626


Tell e how how dealt with..

2265


Give e an example of..

2137


What are the different versions of sas that you have used until now? : sas-grid-administration

1389


What is the difference between input and infile statement?

1225


How would you define the end of a macro?

1147


What is a put statement?

1270


What is SAS?

1097


What are the functions which are used for character handling functions?

1189


Differentiate between proc means and proc summary.

1102


What is a macro routine?

2783