BookmarkSubscribeRSS Feed
deleted_user
Not applicable
i am comparing two sas data set A and B. like

proc compare base = lib.A compare = lib.B out=lib.c;
quit;

On running this proc step in C data set i get all columns name.

i don't want this.

i want to store the name of those columns whose value is not equal, in data set C.
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You will want to review the SAS PROC COMPARE options. The SAS support website http://support.sas.com/ has a wealth of technical papers and SAS-hosted documentation on this topic.

Scott Barry
SBBWorks, Inc.

SAS PROC COMPARE documentation:

http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a000057814.htm

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 936 views
  • 0 likes
  • 2 in conversation