BookmarkSubscribeRSS Feed
DarthSAS
Calcite | Level 5
Hi all,

I need your help ! !

I have 2 identical data step and i want to compare the values of each variables for each observations. When a value for an observation is different between the base data set and the second dataset, i would like to insert this observation in a third data set with the value of the second data set.

I know that the proc compare can compare 2 data set, but i don't know how insert the values when a difference is meet.

Thank you

Darth
3 REPLIES 3
Flip
Fluorite | Level 6
Look into the OUT = and OUTDIFF options.
DarthSAS
Calcite | Level 5
ok thanks Flip......i am so noob.
DarthSAS
Calcite | Level 5
ok thanks Flip......i am so noob.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1331 views
  • 0 likes
  • 2 in conversation