BookmarkSubscribeRSS Feed
a13
Calcite | Level 5 a13
Calcite | Level 5

I want to compare two datasets from different libraries, basically i want to look for values in the datasets which are different. Please help me write the query. I am confused between using except corr and except all.

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

In what sense?  Do you mean a row by row comparison, by certain identifiers, by distinct lists of values?  Post some example test data in the form of a datastep:

https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat...

 

And what the output should be like.

 

All I can say from what you have posted is that there is a procedure called proc compare which is for comparing datasets.  Other than that I know nothing of your problem.

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 558 views
  • 0 likes
  • 2 in conversation