Compare SAS programs

Reply
Regular Contributor
Posts: 228

Compare SAS programs

Dear all,

I'm just wondering if there is a way which I can compare two SAS programs if they are exactly the same?

Hope this is not a silly question to ask.

Thanks in advance.

Super User
Posts: 19,867

Re: Compare SAS programs

SAS programs are text files so you can use any text editor comparison tools to do this, even Word will compare docs I believe.

Diff Checker - Online diff tool to compare text to find the difference between two text files

Super User
Posts: 10,044

Re: Compare SAS programs

If you know Eclipse - a Java Develop tool, there is a built-in program compare tool.  Ctr+ left mouse and select these two code , right mouse and select compare

Super User
Posts: 7,854

Re: Compare SAS programs

If your SAS system runs on UNIX, the diff command will be your friend.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Super User
Posts: 7,988

Re: Compare SAS programs

+1 to all the above.  To add, there is a simple website for this: http://www.comparemyfiles.com/

Or if you are using version control then there are usually compare tools embedded - Diff with previous version in SVN/TortoiseSVN for instance.

New Contributor
Posts: 2

Re: Compare SAS programs

Hi

Regular Contributor
Posts: 228

Re: Compare SAS programs

Thanks everyone for your valuable contribution Smiley Happy

i shall try them all next time.

In the mean time, I'm using MsWord to do the comparison.

Super User
Posts: 11,343

Re: Compare SAS programs

One advantage to using a programming editor is that some of them will allow you to skip comments and blank lines in the comparisons.

Community Manager
Posts: 2,955

Re: Compare SAS programs

You can also now compare two SAS programs within SAS Enterprise Guide -- new in v7.1:

How to compare SAS programs in SAS Enterprise Guide


Chris

Ask a Question
Discussion stats
  • 8 replies
  • 2881 views
  • 12 likes
  • 8 in conversation