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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: