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 would you determine the number of missing or nonmissing values in computations?

1128


what is the purpose of _error_? : Sas programming

1187


What are the default statistics that proc means produce?

1086


Do you know the features of sas?

1086


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1199


What are the data types in sas?

1112


Name few SAS functions?

1143


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4623


Describe what are the different levels of administrative users in sas? : sas-grid-administration

1081


How do you delete duplicate observations in sas?

1110


what can you learn from the sas log when debugging? : Sas programming

1136


how to debug and test the sas program? : Sas-administrator

1073


Differences between where and if statement?

1153


explain the difference between proc means and proc summary?

1181


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1958