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-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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