BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
smantha
Lapis Lazuli | Level 10

In here you are not merging the datasets but concatenating one to the bottom of the other. What about the overlapping records?

_MVB_
Obsidian | Level 7

@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. 

Patrick
Opal | Level 21

@_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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 4106 views
  • 6 likes
  • 5 in conversation