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

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

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