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

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


From   Seb Buechte <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: Logging output directly to a log file without using the viewer
Date   Wed, 23 Nov 2005 18:11:28 +0100

David,

if I understand you correctly you currently see this in your log file:

di "Sometext"
.Sometext

but you want to see

Sometext

The latter is achieved if you put the command into a program. Your
dofile could look like this

quiet {
program myprog
    di "Sometext"
end
}

myprog

program drop myprog

The out put will be:

. do "C:\DOKUME~1\buechte\LOKALE~1\Temp\STD01000000.tmp"

. quiet {

.
. myprog
Sometext

.
. program drop myprog

Hope this helps,

kind regards,
sebastian

On 11/23/05, David Winter <[email protected]> wrote:
> Apologies - Results window
>
> Dave
>
> ****************************************************
> Mr David L. Winter, HNC
> I.T. Manager (BCCSS Study)
> Department of Public Health & Epidemiology
> Room 105, Public Health Building
> University of Birmingham
> Edgbaston
> Birmingham
> B15 2TT
> UK
> tel.: +44 (0)121 414 6766
> fax.: +44 (0)121 414 7923
> ****************************************************
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Nick Cox
> Sent: 23 November 2005 16:20
> To: [email protected]
> Subject: st: RE: Logging output directly to a log file without using the
> viewer
>
> 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?
>
> Nick
> [email protected]
>
> 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/
>


--
- Seb F Buechte
-
- Stay tuned!

*
*   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