Dear Roger:
Thank you for your detailed reply. Unfortunately, it does not work. Here are my command lines:
listtex name using table_countries.txt if sample39_absence==1, rstyle(tabdelim) replace
listtex name using table_countries.txt if sample32_absence==1, rstyle(tabdelim) appendto(table_countries.txt)
I get the following error message:
file table_countries.txt already exists
I must do something wrong somewhere.
Best regards
Herve
***********************************************************
Professeur/Professor
Coordinateur du D�partement/Head of Department
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
France
Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
[email protected]
http://campus.hec.fr/profs/stolowy/perso/home.htm
>>> [email protected] 10/09 6:37 pm >>>
At 07:40 08/10/2005, Herve wrote:
>Dear All:
>
>I have two questions concerning -listtex- (downloadable from ssc).
>
>I want to export two variations of a list of countries.
>
>Question 1: Headlines
>
>With the following command, I would like to get a column title:
>"sample39_absence" above the first list of countries.
>
>listtex name using table_countries if sample39_absence==1,
>rstyle(tabdelim) headlines("sample39_absence") replace
>
>I get the countries but no title.
>
>Question 2: Append
>
>I would like to append the second list of countries below the first one. I
>use the following command:
>
>listtex name using table_countries if sample32_absence==1,
>rstyle(tabdelim) headlines("sample32_absence") appendto(table_countries)
>
>I get the following error message:
>
>file table_countries.raw already exists
Thanks to Herve to alerting me about this bug in -listtex-. This bug is
activated when the user specifies a -using- file or an -appendto()- file
without an extension, and can be fixed by specifying a -using- or
-appendto()- file with an extension, as in
listtex name using table_countries.txt if sample39_absence==1,
rstyle(tabdelim) headlines("sample39_absence") replace
or
listtex name using table_countries.txt if sample32_absence==1,
rstyle(tabdelim) headlines("sample32_absence") appendto(table_countries.txt)
Adding a filename extension is an immediate fix. The reason for this bug is
that -listtex- uses both -outfile- and -file-. Given a filename without an
extension, -file- assumes a file without an extension, and -outfile- adds
the extension .raw, as in table_countries.raw. I am currently working on a
long term policy for -listtex- regarding filenames without extensions.
I hope this helps. (Let me know if it doesn't.)
Best wishes
Roger
--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom
Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://phs.kcl.ac.uk/rogernewson/
Opinions expressed are those of the author, not the institution.
*
* 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/