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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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