Desktop productivity for business analysts and programmers

How do I keep output without replacing or creating new program in EG

Reply
Occasional Contributor
Posts: 7

How do I keep output without replacing or creating new program in EG

[ Edited ]

Hello

 

I'm looking for someone to help me with Enterprise Guide (7.11) if you can. I'm usually a Base SAS user and would quite often run a bit of code, review the results, then run the next bit of code and compare the results in the same output window. In EG it always pops up asking whether I want to replace results from previous run, or save changes to a new program. I don't want to do either. I want the same results in the same program so that I can then compare results without having two programs open.

 

I know you can remove the pop up box and always accept the replacement, but this is not the option I need to compare results. How do you compare results if running code in steps?

 

Thanks

Regular Contributor
Posts: 235

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to SteveDavies

Copy your program to a new program, change the name of the output and run it.  Then compare the results to the first run.

Occasional Contributor
Posts: 7

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to tomrvincent

Thanks, so it can't be done like it is in base SAS without copying or creating a new program?

Regular Contributor
Posts: 235

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to SteveDavies

Even in Base SAS, you have to have the 2nd results go to a different dataset to avoid overwriting the first set of results.  Same in EG.

 

Unless you're trying to do something different...sounded like you're trying to compare the results of 2 slightly different programs, right?

Occasional Contributor
Posts: 7

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to tomrvincent

Hopefully the example below might help with what I am asking:

 

proc means data=test n mean;

var age;

class sex;

run;

proc means data=test n mean;

var age;

class sex;

where num_children eq 0;

run;

 

If I run the first proc means in Base SAS review the output, then decide I want to see a comparison of the results where number of children is zero, I can run the second proc means and see the average ages of the two proc means in the same output window.

 

If I do the same in EG I could run the first one and see the output. When trying to run the second one it would ask me to replace or open it up in a new program. I don't want to do either because I want a comparison so I don't want to replace, and I don't want other programs being opened. To get them in the same output window I would need to run both bits of code at the same time. If they take time to run, or have other code in between this is not optimal.

 

Hopefully this makes it clearer.

Thanks

Regular Contributor
Posts: 235

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to SteveDavies

Use the output option for proc means and then you can use compare the results....maybe with proc compare. Smiley Happy

Occasional Contributor
Posts: 7

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to tomrvincent

Ok, Thanks. it seems like there isn't a way to do it the same way as in Base SAS without writing additional code for something that should be really easy to do. Just another failing of Enterprise Guide hey!

Regular Contributor
Posts: 235

Re: How do I keep output without replacing or creating new program in EG

Posted in reply to SteveDavies

I haven't used base SAS in 30 years, but I prefer to keep my outputs separate to reduce confusion.

Ask a Question
Discussion stats
  • 7 replies
  • 137 views
  • 0 likes
  • 2 in conversation