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 keep only the
observations that have matches from both sets.

Answers were Sorted based on User's Feedback



How would you code a merge that will keep only the observations that have matches from both sets...

Answer / nishant

Using "IN" variable option. Look at the following example.

data three;
merge one(in=x) two(in=y);
by id;
if x=1 and y=1;
run;

Is This Answer Correct ?    13 Yes 1 No

How would you code a merge that will keep only the observations that have matches from both sets...

Answer / pallavi

data three;
merge one(in=x) two(in=y);
by id;
if x and y;
run;

Is This Answer Correct ?    13 Yes 1 No

How would you code a merge that will keep only the observations that have matches from both sets...

Answer / madhavi

proc sort data=one;
by id;
run;
proc sort data=two;
by id;
run;
data comm_rec;
merge one(in=a) two(in=b);
by id;
if a and b;
run;
proc print data=comm_rec;
run;

Is This Answer Correct ?    11 Yes 0 No

How would you code a merge that will keep only the observations that have matches from both sets...

Answer / sheetal

Using joins in proc sql statement, see following example

proc sql;
select *
from a, b
where a.case_id = b.case_id;
quit;

Is This Answer Correct ?    6 Yes 1 No

How would you code a merge that will keep only the observations that have matches from both sets...

Answer / kamudu

here we used simple answer ia
data merge;
merge(tables------);
by (same colum);
if e1 and e2 then
output;
keep-----;
run;

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More SAS Interview Questions

How do you convert basic cube to transaction cube and transaction cube to basic cube?

0 Answers  


what is the formula to measure Baseline

3 Answers   Sristek,


Differentiate between sas functions and sas procedures.

0 Answers  


% let A=3+4 what is result

4 Answers   Satyam,


How can a SAS WEB REPORT STUDIO USER identify which report tabs they have been permitted without entering the SAS WEB REPORT STUDIO

2 Answers   TCS,


If you were told to create many records from one record show how you would do this using arrays and with PROC TRANSPOSE?

1 Answers   HCL, Quintiles,


What are the uses of sas?

0 Answers  


How to find out no. of business days in a month using macros.???(excluding weekends and holidays).

2 Answers   HSBC,


what are the three main credit bureau names

1 Answers   Synchrony Financial,


how will you locate the sas platform applications? : Sas-bi

0 Answers  


what do you mean by data staging area? : Sas-di

0 Answers  


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

0 Answers  


Categories