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 <[email protected]>
To   [email protected]
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 <[email protected]> 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: [email protected]
> [mailto:[email protected]]On Behalf Of Nick Cox
> Sent: 23 November 2005 17:17
> To: [email protected]
> Subject: st: RE: RE: RE: Logging output directly to a log file without
> using the viewer
>
>
> Check out the -file- command.
>
> Nick
> [email protected]
>
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index