SAS Programming

DATA Step, Macro, Functions and more
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

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 6604 views
  • 12 likes
  • 8 in conversation