Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Pasting standard text into a .do file via an .ado file?


From   "Clinton Thompson" <clintonjthompson@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Pasting standard text into a .do file via an .ado file?
Date   Wed, 4 Jul 2007 13:04:22 -0400

Hello All:
I've searched the help files & online documentation, as well as
conducted a cursory search of the Statalist archives, all to no avail,
so I'm posting my query to all of you.  And with that, my query:  I
want to write an .ado file that, when invoked, will open up a blank
.do file [doedit] then paste a bunch of standard text (via a series of
-display- commands) into the .do file.  This is sort of what I'm
envisioning:

/* ***************... *************** */
/* Program Name:  ************* */
/* ...so forth and so on...         */
/***************...**************** */

clear
version 9.2
set more off
capture log close

---- snip -----

I can generate the above via a series of -display- commands but where
I get confused is HOW  can an .ado file (I'm sure it can be done,
albeit I'm at a loss as to how...) paste this into a blank .do file
instead of in the output window?!

Thanks in advance for your suggestions & insights!

Best, Clint
*
*   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