I started using :
PROC SORT DATA=mother nodupkey out=mother1;
BY v001 v002 ;
RUN;
proc sort data=children nodupkey out=children2;
by v001 v002 ;
run;
Then I used this method :
data women1children3;
merge mother1 (in=ina) children2 (in=inb);
by v001 v002 v003;
if ina=inb;
run;
Is this method correct for merging one to many, or should I use this one instead: (Defining the file with duplicates as a master)
data want ;
merge master (in=in1) other ;
by id;
if in1 then output;
in1=0;
run;
Thanks for the help!