Desktop productivity for business analysts and programmers

EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run?

Reply
New Contributor
Posts: 3

EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run?

While not new to programming, I am recently new to using EG.  I am using EG 5.1 connected to a Linux box running SAS 9.3.

 

When creating programs using the program editor in EG I have not been able to find a way to keep the results from previous code snippet runs in the same Results window for comparison purposes.  In my Windows world I typically run a datastep, do a sample proc print, change something in datastep, run and sample print, and then leisurely scroll up and down to compare the two samples.

 

My question is, how do you more experienced EG users handle this issue of being able to compare the different sets of results (and log files for dataset counts, for instance) without being able to scroll them?

 

Thanks in advance for your answers.  And, wow, while typing this question SAS Support Communities notfied me that I have earned the rank of New User :-)

 

Stephen

Community Manager
Posts: 2,703

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

Did you know that you can split your editor and log window?  See my (old but relevant) blog post here.

 

For looking at logs across program runs, you can turn on the EG Project Log -- then use the split window trick to look at different segments.

New Contributor
Posts: 3

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

Hi Chris, thanks for responding.  I did implement your tip to split the windows.  However, it seems that I am still only seeing in the split windows the results of the most recent code snippet run - ie - my previous log window results have been cleared and replaced with the new results.  Of course, I may be missing something key using your tip.

 

Also, I'm in the process now of migrating from EG 5.1 to 7.1, if this makes any difference.

 

Thanks again for responding. 

Respected Advisor
Posts: 3,066

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

I use PROC COMPARE as one of my main tools for comparing the results of SAS jobs. If the underlying datasets between runs are identical then the only difference in outputs / reports is mostly going to be in the layout, formatting and filtering.

Community Manager
Posts: 2,703

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

First step has to be "Turn on the Project Log", which will retain your log output for every step that you run.  Select View->Project Log from the main menu to get started.  After you click "Turn on", all log output will be collected here.  You can always select View->Project Log from the menu, or click the Project Log button from the top of any Log window.

 

Then you can compare the historical results using the split window feature:

 

plog.png

Respected Advisor
Posts: 3,066

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

Great idea from @ChrisHemedinger. Just be careful though with using the project log. If you are running very large programs then you need to clear the project log regularly otherwise EG performance can be impacted.

 

I tend to do things differently when testing very large SAS programs - I find it easier and more convenient to run them in batch mode.

New Contributor
Posts: 3

Re: EG - How Do You Compare Results Between Runs of Code When the Results Window is Cleared Each Run

Thanks Chris and SASKiwi!  At the moment I am EG-less as my attempt to migrate yesterday from 5.1 to 7.1 has failed numerous times; our IT dept is working on it.  As soon as I get the opportunity I will try your suggestions.

 

 

Ask a Question
Discussion stats
  • 6 replies
  • 301 views
  • 3 likes
  • 3 in conversation