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

Hi all SAS Users,

 

Yesterday I got the answer about installing WinMerge from @ChrisNZ by reading a paper from @ChrisHemedinger  to compare two SAS code together. 

1. I am wondering why I cannot save the SAS code after adjusting in WinMerge. For example, I have two programs name delete1 and delete2

Phil_NZ_0-1616530590503.png

 

Phil_NZ_1-1616530606203.png

I used the WinMerge to compare them 

 

2. It turns on this notice and I am not sure what I should do with that (Could you please confirm to me that I just need to click onto "Don't ask this question again" and Yes button ?)

Phil_NZ_2-1616530660099.png

3. Assuming I click"Yes", it compares successfully

Phil_NZ_3-1616530709696.png

So, I try to copy the "different line" from delete2 to delete1 to let them be identical by using the function Right Click -> "Copy to right".

Phil_NZ_4-1616530802630.png

Then I click the button "Save" at the top left of the dashboard with  a purpose of saving the adjusted delete1

Phil_NZ_5-1616530870152.png

However, when I come back to SAS EG, no change applied

Phil_NZ_6-1616530908547.png

I am wondering could you please let me know how to save an adjusted program from WinMerge.

 

Apart from that, I also want to report a change for this document that  

 

Phil_NZ_7-1616530994605.png

 

In SAS EG 8.3 it becomes

Phil_NZ_8-1616531026619.png

 

Warm regards and have a great day.

Phil

 

 

 

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

SAS programs can be tracked in your EG projects two ways:

  • embedded, saved within the EGP
  • external, added as references (like shortcuts) within the project but saved in a file on disk or the network

When using external files, you can use the programs in your project but it's possible to also edit/modify the file with other tools (like WinMerge).

 

The visual cue is subtle, but the icons are slightly different for embedded vs. external programs:

ChrisHemedinger_0-1616620405140.png

And when you hover your cursor over an external program node, you'll see the file name listed in a tool tip.

 

To accomplish what you want, I recommend keeping the program files external in a folder. Open them in EG and add to your project. Then select the two nodes, right-click, select Compare. If you copy content from one WinMerge pane to another and then save, EG should detect the file update to the underlying file.

 

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

View solution in original post

7 REPLIES 7
ChrisNZ
Tourmaline | Level 20

a. Notification.
Your files were created on Unix/Linux and Windows respectively. See here for historical reasons for the frustrating difference. https://stackoverflow.com/questions/419291/historical-reason-behind-different-line-ending-at-differe...

 

b. Winmerge should update the files. Does it? Is it EG that fails to refresh correctly?

 

 

Phil_NZ
Barite | Level 11

Hi @ChrisNZ 

Thank you for your reply.

 

a. But I just created these two files in the same project in the same computer, so I am wondering how come they came from Unix/Linux and Windows respectively. It is quite strange to me.

b. Yes, I did save as I mentioned and there is nothing change in the program in SAS EG, I may fall in a fallacy here, could you please hint me out?

 

Warm regards.

 

 

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
ChrisHemedinger
Community Manager

I think the challenge is that you are using embedded SAS programs, which are not files that are managed outside of your project.

 

The Compare feature will create a temp version of the file(s) to compare in WinMerge, but any changes you make are not reflected back into the copy you have in the project.

 

To make this work the way you want, you would need these SAS programs to be in files outside of the project file. Remember that you can use the "relative file path" attribute on a project to keep everything together, where your EG project can find those program files that are stored in the same folder relative to the EGP file. 

 

You can find this setting in Properties for your project:

ChrisHemedinger_0-1616593662003.png

 

 

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
Phil_NZ
Barite | Level 11

Hi @ChrisHemedinger 

Thank you for your suggestion,m but I use SAS EG 8.3, but when I open the property for a program in a project in SAS EG, I got this box, which does noit have the same function like yours

Phil_NZ_0-1616618165085.png

And I right click on the project instead of the program, I have

Phil_NZ_1-1616618202305.png

Could you please help me to sort it out?

Warm regards.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
ChrisHemedinger
Community Manager

The properties you want are on the Project name, which you find in the Project view. Example:

 

ChrisHemedinger_0-1616618622307.png

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
Phil_NZ
Barite | Level 11

Hi @ChrisHemedinger 

 

Thank you for your dedicated guide, can I aks how could I do that

"you would need these SAS programs to be in files outside of the project file"

I extract them already, now how can I compare if I do not put them into one project to compare ?

Phil_NZ_0-1616619092492.png

 

 

Warm regards.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
ChrisHemedinger
Community Manager

SAS programs can be tracked in your EG projects two ways:

  • embedded, saved within the EGP
  • external, added as references (like shortcuts) within the project but saved in a file on disk or the network

When using external files, you can use the programs in your project but it's possible to also edit/modify the file with other tools (like WinMerge).

 

The visual cue is subtle, but the icons are slightly different for embedded vs. external programs:

ChrisHemedinger_0-1616620405140.png

And when you hover your cursor over an external program node, you'll see the file name listed in a tool tip.

 

To accomplish what you want, I recommend keeping the program files external in a folder. Open them in EG and add to your project. Then select the two nodes, right-click, select Compare. If you copy content from one WinMerge pane to another and then save, EG should detect the file update to the underlying file.

 

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 7 replies
  • 1304 views
  • 6 likes
  • 3 in conversation