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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare sas with other data analytics tools.

682


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

2287


what other sas products have you used and consider yourself proficient in using? : Sas programming

779


what does the run statement do? : Sas programming

651


AE datasets names? how many types?

2152






What are the statements in proc sql?

668


explain what is factor analysis? : Sas-administrator

689


What is PROC in SAS?

707


how to remove duplicates using proc sql?

736


what do the pad and dim functions do? : Sas programming

656


Explain translate function?

745


What is the function of output statement in a SAS Program?

703


What are the functions used for character handling?

746


Why double trailing @@ is used in input statement?

831


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

704