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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 887 views
  • 0 likes
  • 2 in conversation