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 / vipin choudhary

Assume the common variable in both of the old datasets
is "name".
Data One two three;
merge old(in = in1) old1(in = in2);
by name;
if in1 and in2 then output one;
if in1 then output two;
if in1 = 0 and in2 = 1 then output three;
run

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you specify the number of iterations and specific condition within a single do loop?

1094


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2330


What do you code to create a macro? : sas-macro

1127


If money were no object, what would you like to do?

3194


Describe a time when you were really stuck on a problem and how you solved it?

2544


what is snowflake schema? : Sas-di

1211


Differentiate between format and informat? : sas-grid-administration

1049


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1008


What are pdv and it functions?

1132


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1081


what is proc Index? and what is proc document?

2711


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4505


AE datasets names? how many types?

2493


explain the difference between proc means and proc summary?

1114


What is the use of function Proc summary?

1271