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

how do you test for missing values? : Sas programming

1097


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2771


Describe the function and untility of the most difficult SAS macro that you have written.

2272


what is sas data set?

1144


Explain the use of proc gplot? : sas-grid-administration

1042


What is by-group processing?

1056


do you need to know if there are any missing values? : Sas programming

1120


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1541


what r the job openings SAS for fresher graduates !

2500


How do you connect the desktop application to metadata server? : sas-grid-administration

1144


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

1309


what has been your most common programming mistake? : Sas programming

1185


what is null hypothesis? why do you consider that?

2957


What does the trace option do?

1161


what are the scrubbing procedures in sas? : Sas programming

1319