Dear,
I need compare to two sets of xpt files in different folders. How to compare the xpt datasets and find differences. Please suggest.
Thank you
Extract the datasets from the XPT files into normal SAS datasets and then use PROC COMPARE to check difference between the datasets:
libname testlib xport 'c:\temp\MyFile.xpt';
proc copy in=testlib out=work;
select MyTable1 MyTable2;
run;
proc compare base = Mytable1
compare = MyTable2;
run;
If the dataset names might be the same then import into two different libraries then compare.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.