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 <>
To   Statalist <>
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:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index