try the -type- command.
type myfile.do
Michael Blasnik
[email protected]
----- Original Message -----
From: "CM" <[email protected]>
To: <[email protected]>
Sent: Thursday, July 15, 2004 6:52 PM
Subject: st: Printing the do-file to screen as you RUN the do-file
> Dear Stata-listers,
>
> I tried using "findit screen print" and a few other
> simple searches (i.e. print, view) but couldn't find
> what I want.
>
> I want a copy of my .do file in my log file every
> single time I run it (I'm printing out hard copies a
> few times a day and need the day/time stamp).
> Basically I need a command that will read and output a
> text file to just the screen. "-print" sends it
> straight to the printer, and "-view" doesn't do it
> either.
>
> It seems like it should be possible, this notion of
> printing to screen the .do file as you run the .do
> file itself? (Of course I could 'comment' the whole
> thing and nest but then I'd get those ">" signs)
>
> Regards,
> CM
*
* 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/