BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vnreddy
Quartz | Level 8

Hi,

 

I have two datasets with same datatypes and same variables names, each dataset has 100+ variables in it. And they are from different sources(SAS libraries).

I got a business problem to identify the variables with different data in it from both the datasets.

e.g. Dataset A with column STREET has values something like below.

8 BATH ROAD
7 CRIB Y SIANEL
RHONDDA HOUSE, PENDINE

 

Dataset B with column STREET values like below:

BATH ROAD
CRIB Y SIANEL
RHONDDA HOUSE

 

Here is the difficulty i have: Dataset A is from an old system and Dataset B is from New system. 

It's a migration work, data from B has more rows than A. Is there any way i can give few examples scenarios where columns with like data and unlike data(STREET).

 

Tried proc compare using a ID variable from both A and B, but as i said, B is having more rows.

My requirement  is to give variables with different values(STREET) like 5 obs. This is to tell new system(B) values are different from old system(A) 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Look into PROC COMPARE.

View solution in original post

1 REPLY 1
Reeza
Super User

Look into PROC COMPARE.

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

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 780 views
  • 0 likes
  • 2 in conversation