Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Saving Review Window


From   Tinna <[email protected]>
To   [email protected]
Subject   Re: st: Saving Review Window
Date   Fri, 23 Dec 2005 06:48:35 -0500

Thans Uli and Austin. That was exactly what I needed.
Tinna

On 12/23/05, Ulrich Kohler <[email protected]> wrote:
> Tinna,
>
> store all lines of the program, i.e from -program pushreview- up to to -end-
> under the name "pushreview.ado" in your personal ado directory (aka
> c:/ado/personal). Make sure that there is a "carriage return" after -end-.
> You can than state
>
> . pushreview myfile.do
>
> Hope that helps
> Uli
>
> Tinna wrote:
> > Thanks for the answers. I have saved the commands in the review
> > window, but I am not very fluent in this framework, so I am not sure
> > about what to do with the program code. I figured I would not ask at
> > first, but have changed my mind :)
> >
> > What do I do with the program code? I tried finding this program to
> > download, but STATA didn't find it. This is not to my surprise as I am
> > sure the code was left there for me to do something with it. What, I
> > am not sure. Ouch!
> >
> > Tinna
> >
> > On 12/19/05, Nick Winter <[email protected]> wrote:
> > > You can save the contents of the review window into a .do file by
> > > right-clicking on the review window and selecting "Save Review
> > > Contents..."
> > >
> > > You can then execute that .do file.
> > >
> > > The program below will let you read the contents of that do file and
> > > insert it into the review window, WITHOUT actually executing the
> > > commands:
> > >
> > > ---------------------------------------------------------
> > > program pushreview
> > >         version 9.1
> > >         args fn
> > >
> > >         tempname hdl
> > >         file open `hdl' using `"`fn'"', read text
> > >         file read `hdl' line
> > >
> > >         while !(r(eof)) {
> > >                 window push `line'
> > >                 file read `hdl' line
> > >         }
> > > end
> > > --------------------------------------------------------
> > >
> > > Syntax is just
> > >
> > >   . pushreview mydo.do
> > >
> > > where "mydo.do" is the name of the .do file you saved before.
> > >
> > > I don't think Stata has a way to save the review window contents
> > > programmatically, so I don't think this can be fully automated . . .
> > >
> > > --Nick
> > >
> > > At 03:34 PM 12/19/2005, you wrote:
> > > >My apologies. This will only reexecute the commands but not paste
> > > >them in the results window, unlike you wanted, sorry about that. Chris
> > > >
> > > >On Dec 19, 2005, at 21:30, Chris Kopp wrote:
> > > >>Tinna
> > > >>If the commands you wish to have in the review windows do not take
> > > >>too long to execute, you could save the commands in question to
> > > >>a .do-file and execute this as first thing when switching working
> > > >>place. Consider using -cmdlog- as well to extract the commands
> > > >>needed in your .do-file.
> > > >>If the commands do take a long time, this is not a good solution,
> > > >>of course.
> > > >>
> > > >>Cheers, Chris
> > > >>
> > > >>On Dec 19, 2005, at 20:38, Tinna wrote:
> > > >>>Dear Statalisters,
> > > >>>
> > > >>>Is it possible to save the review window somehow. I go between home
> > > >>>and office with my STATA-work quite a bit and would love to have the
> > > >>>old commands available when I re-open my file.
> > > >>>
> > > >>>Tinna
> > > >>>
> > > >>>*
> > > >>>*   For searches and help try:
> > > >>>*   http://www.stata.com/support/faqs/res/findit.html
> > > >>>*   http://www.stata.com/support/statalist/faq
> > > >>>*   http://www.ats.ucla.edu/stat/stata/
> > > >>
> > > >>*
> > > >>*   For searches and help try:
> > > >>*   http://www.stata.com/support/faqs/res/findit.html
> > > >>*   http://www.stata.com/support/statalist/faq
> > > >>*   http://www.ats.ucla.edu/stat/stata/
> > > >
> > > >*
> > > >*   For searches and help try:
> > > >*   http://www.stata.com/support/faqs/res/findit.html
> > > >*   http://www.stata.com/support/statalist/faq
> > > >*   http://www.ats.ucla.edu/stat/stata/
> > >
> > > ________________________________________________________
> > > Nicholas J. G. Winter                     607.255.8819 t
> > > Assistant Professor                       607.255.4530 f
> > > Department of Government              [email protected] e
> > > Cornell University        falcon.arts.cornell.edu/nw53 w
> > > 308 White Hall
> > > Ithaca, NY 14853-4601
> > >
> > >
> > > *
> > > *   For searches and help try:
> > > *   http://www.stata.com/support/faqs/res/findit.html
> > > *   http://www.stata.com/support/statalist/faq
> > > *   http://www.ats.ucla.edu/stat/stata/
> >
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/support/faqs/res/findit.html
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
>
> --
> [email protected]
> +49 (030) 25491-361
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index