BookmarkSubscribeRSS Feed
Miracle
Barite | Level 11

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.

8 REPLIES 8
Reeza
Super User

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

Ksharp
Super User

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

RW9
Diamond | Level 26 RW9
Diamond | Level 26

+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.

GnaneshwarChaudhari
Calcite | Level 5

Hi

Miracle
Barite | Level 11

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.

ballardw
Super User

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

ChrisHemedinger
Community Manager

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

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 6909 views
  • 12 likes
  • 8 in conversation