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 / proc sql

proc sql:
proc sql;
create table sqln1 as select one.id,name,age,sex from one
inner join two on one.id=two.id;
create table sqln2 as select one.id,name,age,sex from one
left join two on one.id=two.id where two.id is null;
create table sqln3 as select two.id,name,age,sex from one
right join two on one.id=two.id where one.id is null;
quit;

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is data integration? : Sas-di

1120


Difference between informat and format?

1096


Name validation tools used in SAS

1184


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1085


What is the use of stop statement?

1086


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1073


Name some categories in sas 9? : sas-grid-administration

978


For clinical entire study how many tables will create approx?

1970


which features do you use to check the data validations and errors? : Sas-administrator

1056


Mention what is SAS data set?

1132


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

1073


Are you involved in writing the inferential analysis plan? Tables specfications?

2564


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1162


What are the features of base sas system?

1068


What are the implications?

1713