Statalist The Stata Listserver


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

Re: st: Outsheet file to "txt" file


From   Joseph Coveney <jcoveney@bigplanet.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Outsheet file to "txt" file
Date   Thu, 24 Aug 2006 18:30:36 +0900

I'd forgotten that -tostring- can take a variable list.  The -foreach- loop 
is not needed.  You can do what you want more simply:

tostring _all, replace
format _all %-8s
outfile using Eleven-wide.prn, wide noquote

Joseph Coveney


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