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 <[email protected]>
To   Statalist <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index