The %SASDIFF macro

The %SASDIFF macro performs differential file comparison and can be used for SAS programs the same way that the UNIX sdiff utility can be used to compare files containing program code or data. You can use %SASDIFF to highlight commonalities and differences between SAS programs or data files. %SASDIFF has options to recognize upper/lower case, ignore white space and/or blank lines, and ignore matching lines between two files.

%SASDIFF can be used for version control to detect differences between files and to compare text files containing data, indicating lines that may be out of order or which are present in one file but not another.

You can find the macro code and descriptive documentation at:

http://www.sascommunity.org/wiki/%25SASDIFF_is_to_SAS_as_sdiff_is_to_UNIX

Ross