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