Statalist The Stata Listserver


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

st: RE: Error when appending


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: Error when appending
Date   Fri, 8 Jun 2007 13:06:19 +0100

I think your second line should be

append using "Followup\NKdta\merge2_v.dta"

instead of

append "Followup\NKdta\merge2_v.dta"

The -using- qualifier tells Stata that a filename is expected next.
Without the -using- qualifier, Stata assumes that your filename is a
variable list, and append does not accept variable lists.

I hope this helps.

Roger


Roger Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
www.imperial.ac.uk/nhli/r.newson/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: 07 June 2007 22:49
To: [email protected]
Subject: st: Error when appending

Hi,
When I tried to append two datasets, I receive an error message,
"varlist not allowed".  (Please see below for the stata screen.)
What does this mean?

Thank you so much.



*************** Stata Screen
*****************************************************
  use "Baseline\NKdta\merge1_v.dta"

  append "Followup\NKdta\merge2_v.dta"
varlist not allowed
r(101);
*
*   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