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

Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.

2 Answers   Accenture,


how to import HTML files into SAS datasets?

3 Answers   HP,


what is treatment emergent events and treatment emregent adverse event

0 Answers  


what is the difference between %put and symbolgen?

6 Answers  


What are the features of base sas system?

0 Answers  






What do you feel about hardcoding?

1 Answers  


how can you code the confidence intervals?

6 Answers   Cytel, IIT, Ranbaxy,


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

0 Answers  


Do you know the features of sas?

0 Answers  


Dear all, proc means data=dsn noprint completetypes; class trtmntgroup /preloadfmt; output out=tot n=n; format trtmntgroup trtf. ; by vstgrp descending severity; run; This is the code I used for AE table. I got the values without giving the variable ‘trtmntgroup(numeric)’ in var statement. And if I give the var statement for that variable i’m getting the same values.How is that possible? What is the difference between class and var statement? Could any one explain me how does proc means work at the back end. And what is the difference between _freq_ value and N value in proc means. Thanks and regards, Rajesh.

1 Answers  


What is by-group processing?

0 Answers  


Hi , which book should i refer to for preaparing SAS statistical Exam. Searched a lot on books but still did n't find relevant books

2 Answers  


Categories