BookmarkSubscribeRSS Feed
Shyamkumar
Calcite | Level 5

Hi,

I have 4 datasets ,I need to proc compare between those. Please help me out with the examples.

 Thankyou.

2 REPLIES 2
Kurt_Bremser
Super User

Since PROC COMPARE can only compare two datasets in one run, you have to do multiple runs.

The wizard in Enterprise Guide is good in assisting to create the code.

ballardw
Super User

It might help to tell us what exactly you want to know after the comparison(s) are complete.

 

If all you need to know is properties or existence of variables then you don't need Proc Compare.

 

If you need to compare individual values then are you looking for all or some of them? And how many variables would be involved.

 

Since proc compare only will compare 2 data sets at a time you are looking at the output of 10 "comparisons" which could be quite lengthy to browse through if there are specific questions you want answers about the datasets.

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
  • 2 replies
  • 453 views
  • 0 likes
  • 3 in conversation