Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: help on outfile to fixed formatted text file


From   Steven Dubnoff <sdubnoff@circlesys.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: help on outfile to fixed formatted text file
Date   Tue, 25 Oct 2005 11:00:34 -0700


You are on the right track with -outfile-, but not with a dictionary. Instead, use the runtogether option. You will most likely need to convert all numeric variables to strings with the desired formatting and may also need to pad strings. You can then order the variables and use the runtogether option in outfile.

If you have Stat/Transfer, you can avoid all of that work by picking a fixed format output option. Your file will be written automatically with each variable in the narrowest width that preserves its precision. Optionally, Stat/Trannsfer will produce dictionaries or programs to read the data back into SAS, SPSS, Stata or Stat/Transfer.

As an aside, we recommend this option to all who are storing their data for the long term. We frequently receive calls for help from those who need to read files created on obsolete hardware and/or software platforms. If your data are in ASCII and are properly described, you will be able to read them in the future.

Best,

Steve




----------------------------------------------------------------
Steven Dubnoff sdubnoff@circlesys.com
Circle Systems We make your data instantly usable.
Download Stat/Transfer from http://www.stattransfer.com
1001 Fourth Avenue, #3200 (206) 682-3783
Seattle, WA 98154 Fax (206) 328-4788


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