Statalist


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

RE: st: Creating space delimited ASCII data files


From   "Barth Riley" <[email protected]>
To   <[email protected]>
Subject   RE: st: Creating space delimited ASCII data files
Date   Sun, 9 Mar 2008 19:14:00 -0500

This is the syntax I used:

outfile using "C:\Documents and Settings\...\data.txt", nolabel wide

When I executed this command a second time, I did not get an error message.
However, the resulting text file when opened does not appear to be an ASCII
file in fixed column format (it appears instead to either be in Stata data
file format or in raw format).

Barth


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Svend Juul
Sent: Sunday, March 09, 2008 9:46 AM
To: [email protected]
Subject: Re: st: Creating space delimited ASCII data files 

Barth wrote:
 
I have tried using the outfile command in Stata 9.2 to create a space
delimited, fixed format ascii data file using data from an existing Stata
data file. I received an error message that the name of the ASCII file I
specified (outfile using <file name>) did not exist. Despite this message, I
did find the generated file on my computer. However, when I opened the file,
the information was unintelligible (perhaps it was in raw format?). (BTW, I
used the wide and nolabel options). Can anyone tell me how to get a readable
ascii fixed format file using the outfile or similar command?
 
------------------------------------------------------------------
 
In the advice on how to ask questions to Statalist:
 
   http://www.stata.com/support/faqs/res/statalist.html#advice
 
it is recommended to show exactly what you wrote and exactly what
Stata responded. Copy-and-paste it from the Results window.
 
Svend
________________________________________________________ 
 
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:   +45 8942 6090 
Phone, home:   +45 8693 7796 
Fax:           +45 8613 1580 
E-mail:        [email protected] 
_________________________________________________________ 


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


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