In here you are not merging the datasets but concatenating one to the bottom of the other. What about the overlapping records?
@smantha yes, I should have used a concatenating, not merging.
Overlapping records are not an issue, there is a purpose of why these 1,000 records from dataset2 needed on the final dataset. They would be exactly same, because they were outputted in earlier steps from the dataset1. I just need a final dataset to have 11,000 records with an indicator which would be used later to differentiate whether it is coming from dataset1 or dataset 2.
@_MVB_ wrote:
@smantha yes, I should have used a concatenating, not merging.
Overlapping records are not an issue, there is a purpose of why these 1,000 records from dataset2 needed on the final dataset. They would be exactly same, because they were outputted in earlier steps from the dataset1. I just need a final dataset to have 11,000 records with an indicator which would be used later to differentiate whether it is coming from dataset1 or dataset 2.
Then look again at what @Reeza already proposed because that's doing what you're asking for.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.