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 / m.sivakumar

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 coalesce(one.id,two.id)as
id,name,age,sex from one right join two on one.id=two.id
where one.id is null;

quit;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you control the number of observations and/or variables read or written?

1190


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

1272


How to limit decimal places for variable using proc means?

1043


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

993


what are sas/access and sas/connect? : Sas programming

940


how can you import .csv file in to sas? : Sas programming

1044


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

2280


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

982


What is the use of the %include statement?

1084


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

2283


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

967


what is business intelligence? : Sas-bi

1014


What do you understand by the term Normal Distribution?

922


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

979


Can you execute macro within another macro? : sas-macro

935