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

Re: st: RE: RE: RE: RE: Logging output directly to a log file without using the viewer


From   Richard Palmer-Jones <richard.palmerjones@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: RE: RE: RE: Logging output directly to a log file without using the viewer
Date   Thu, 24 Nov 2005 13:41:16 +0500

just a thought in case it is more what you want.

I used -file- to write the contents of macros or specific variable
values to a text file, but then found that -postfile- was more
suitable if I wanted to use the output back as stata data rather than
as text.

Richard


On 11/24/05, David Winter <d.l.winter@bham.ac.uk> wrote:
> Thanks Nick, -file- appears to be the answer.  Memories of Fortran, Pascal, Algol 68 et al. come flooding back!
>
> One further question - I would tend to believe that writing to files is probably used by programmers in Stata (you may disagree).  Would it be an idea to have a cross reference to the -log- command from -file- (and vice-versa) in the Stata Help facility?
>
> Dave
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Cox
> Sent: 23 November 2005 17:17
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: RE: RE: Logging output directly to a log file without
> using the viewer
>
>
> Check out the -file- command.
>
> Nick
> n.j.cox@durham.ac.uk
>
> David Winter
>
> > Apologies - Results window
>
> Nick Cox
>
> > I don't understand this question.
> >
> > Whether you look at a file, be that a .log file or
> > any other text file, in the Viewer is entirely up to
> > you.
> >
> > I know no sense in which keeping a .log file
> > is to be thought of as sending it to the Viewer.
> >
> > Do you mean the Results window?
>
> David Winter
>
> > > I have a rather complex .do file that runs some analyses, the
> > > output of which I send to a log file.  As a new Stata
> > > user/programmer the .do file is probably not the most
> > > efficient so I use the -quietly- option.
> > >
> > > Is there anyway I can send output (from -display as result-
> > > for example ) directly to a log file without displaying it in
> > > a viewer as well, whilst using the -quietly- option?  This is
> > > my programmer head talking!
>
> *
> *   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/



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