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

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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