Use proc compare, to compare the 1st snapshot (base😃 with the last one (compare=).
To compare numeric value use option criterion= (like criterion=0.01 for rounded cents).
Use by statement to force comparing same IDs.
Check documentation for more options and possibilities.
You can use keep= option in both tables, base and compare, in order to compare selected variables only.
Proc compare will compare all matching selected variables by names, character type as numeric.
You probably don't want to compare address of ID1 with that of ID2. Using by statement will
compare matching IDs. The output list will contain all not matching IDs and all
matching IDS if there are unequal values of matching variables.
Best try it and check output listing.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.