BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jimbarbour
Meteorite | Level 14

Enterprise Guide gives me this really nice "diff" feature showing me the changes between one version of a program and another.  See screen shot, below. 

 

Is there a way to print this diff report?  Or put it out to a pdf?  Or something?  I really like the diff report, but I want to be able to share it with others who don't use Enterprise Guide (like my boss).  

 

Thanks,

 

Jim

 

Enterprise_Guide_Diff_Display.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
CaseySmith
SAS Employee

Hi Jim,

 

Yeah, there is no way to print (to paper or PDF) that specific diff view (well, other than taking a screenshot), however you should be able to accomplish by configuring a custom diff tool in EG and using it to print the differences.  For example...

 

-In EG's Tools->Options->File Comparison, check Use custom file comparison tool and specify a diff tool installed on your computer. (I like WinMerge.)
-In your program's History dialog, multi-select (Ctrl+MouseClick) the two versions you wish to compare, then click the Compare button (which will become enabled when you have exactly two versions selected).
-Your custom diff tool will open, displaying the differences between the two selected versions.
-Click Print in your custom diff tool.

 

Your diff tool will very likely support printing the differences, though it may be in a different display format. (For example, WinMerge displays and prints the differences side-by-side rather than inline +/-..  Git style diff.)  I suspect you could find another diff tool that would display the differences in that Git diff layout and use it as your custom file comparison tool in EG.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

View solution in original post

5 REPLIES 5
jimbarbour
Meteorite | Level 14

Well, I suppose that the deafening silence would indicate a "no."  Rats.

 

Jim

CaseySmith
SAS Employee

Hi Jim,

 

Yeah, there is no way to print (to paper or PDF) that specific diff view (well, other than taking a screenshot), however you should be able to accomplish by configuring a custom diff tool in EG and using it to print the differences.  For example...

 

-In EG's Tools->Options->File Comparison, check Use custom file comparison tool and specify a diff tool installed on your computer. (I like WinMerge.)
-In your program's History dialog, multi-select (Ctrl+MouseClick) the two versions you wish to compare, then click the Compare button (which will become enabled when you have exactly two versions selected).
-Your custom diff tool will open, displaying the differences between the two selected versions.
-Click Print in your custom diff tool.

 

Your diff tool will very likely support printing the differences, though it may be in a different display format. (For example, WinMerge displays and prints the differences side-by-side rather than inline +/-..  Git style diff.)  I suspect you could find another diff tool that would display the differences in that Git diff layout and use it as your custom file comparison tool in EG.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

jimbarbour
Meteorite | Level 14

Hi, @CaseySmith,

 

Thank you very much for that.  It had occurred to me to try to configure a 3rd party tool of some type, but my organization is incredibly up tight about such stuff.  If it's not on the approved software list, then we can't purchase it, and, guess what, there are no "diff" tools on the approved list.

 

I can always export my sas programs from EG, upload to UNIX, run a diff there, and then download the results, a most convenient and efficient means of producing a diff, I think we'll all agree.

 

Maybe I can convince @cjdinger to put the feature into the next version of SAS Enterprise Guide.  🙂

 

Jm

ChrisHemedinger
Community Manager

@CaseySmith is the one to convince, @jimbarbour -- these days I'm just an enthusiast, like yourself.

 

WinMerge is free so no purchase necessary, but you still need permission from your IT overlords to install.  It's a great productivity tool -- for programmers, it should be a simple case to make.

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!
jimbarbour
Meteorite | Level 14

Well, if either of you are at WUSS, I'll buy you a beer.  You guys are all super supportive here on the Communities.

 

And, if you're suffering from insomnia, you can come and hear my ever-so-exciting talk on "Parallel Processing in Base SAS."  White knuckle stuff if ever there were such a thing.

 

Jim

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 5 replies
  • 1926 views
  • 4 likes
  • 3 in conversation