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...


Explain the message 'Merge has one or more datasets with
repeats of by variables'.

Answers were Sorted based on User's Feedback



Explain the message 'Merge has one or more datasets with repeats of by variables'...

Answer / vimal

If we are merging two datasets,

say,

a b
100 100
100

data x;
merge a b;
by id;

in this case, b has by variable repeated twice.

so the warning occurs.

Is This Answer Correct ?    4 Yes 0 No

Explain the message 'Merge has one or more datasets with repeats of by variables'...

Answer / upendra

it meens that by variable uesd in merge has more than one
record for observation.

Is This Answer Correct ?    3 Yes 1 No

Explain the message 'Merge has one or more datasets with repeats of by variables'...

Answer / pricil kurian

This message occur when we merge two datasets having the by
variables with more than one observation in both datasets.
In such scenarios we can't tell the result is true...We are
expecting really a carteisan product in such situation but
it is not the case..Inside the by values it will do a 1-1
merge only. So this note is very important. Use
nomergeby=error option in sas as a option so that we will
get this message as a error. This will avoid ignoring this
message. Use proc sql to merge the dataset such type
situation and proc sql will give a carteisan product. If u
are doing with datastep create unique variable and then
merge.

Is This Answer Correct ?    5 Yes 3 No

Explain the message 'Merge has one or more datasets with repeats of by variables'...

Answer / vishal

if pid is the by variable in data1 and data2

and if pid 101 have 2 or more obs in both dataset then
this warning occur

Is This Answer Correct ?    2 Yes 0 No

Explain the message 'Merge has one or more datasets with repeats of by variables'...

Answer / pari

merge,is performed under conditional criteria, thus we could
merge one or many datasets with repeats of a particular
variable using by statement.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More SAS Interview Questions

Describe a time when you were really stuck on a problem and how you solved it?

0 Answers   DELL,


How we can create SAS USER DEFINED CODE?

0 Answers  


Code a PROC MEANS that shows both summed and averaged output of the data.

5 Answers  


i have a dataset with var1,var2,var3; i want to upload the titles for the variables . How can we?

1 Answers   GSK,


What is difference between sas rename and lable?

4 Answers  


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

0 Answers   SAS,


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

0 Answers  


how can u join the two tables without using proc sql Joins and nested queries ?

6 Answers   IBM,


What are the difference between sas functions and procedures?

0 Answers  


if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually

4 Answers   Accenture,


What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?

8 Answers  


Why is a STOP statement needed for the point=option on a SET statement?

2 Answers   Quintiles,


Categories