How to avoid data set merging problems when common BY variable has different lengths?