Dear Stata Users,

I need to merge data1 to data2 such that data1 is merged to data2 between two date ("start" and "end"). For this I open data2 and use the following command:

Code:
rangejoin data1_date start end using "D:\Research\date1.dta", by(lenderid)
My question is whether what I am doing is right and how to keep only merged observations? Please, help me with this issue.

Best regards,
Alberto