Thanks to Kit Baum, there is now a new version of the -dsconcat- package
downloadable from SSC. In Stata, type -ssc desc dsconcat- to find out more.
The -dsconcat- package is as described below on my website. The new version
has an additional option -noldsid-, which specifies that the generated
input numeric data set ID variable specified by the -dsid()- option will
have no value label. (Usually, the variable specified by the -dsid()-
option is given a value label specifying the input data set name in each
observation in the output data set. However, if these data set names are
repeated and/or uninformative temporary file names, then it is more
informative for the user to see data set sequence numbers, instead of data
set names.)
Best wishes
Roger
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package dsconcat from http://www.kcl-phs.org.uk/rogernewson/stata7
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TITLE
dsconcat: Concatenate a list of Stata data files into the memory
DESCRIPTION/AUTHOR(S)
dsconcat is a multiple-file version of use. It takes, as input, a
list of
filenames, assumed to belong to Stata data files, and creates a new
data set
in memory, containing a concatenation of all or a subset of the
observations
and variables in all the input data sets. The observations are ordered
primarily by source data set and secondarily by order of
observations within
source data set. Optionally, dsconcat creates new variables
specifying, for
each observation, the source data set of origin and/or the
sequential order
of the observation within its source data set of origin.
Author: Roger Newson
Distribution-Date: 14august2003
Stata-Version: 7
INSTALLATION FILES (click here to install)
dsconcat.ado
dsconcat.hlp
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
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://www.kcl-phs.org.uk/rogernewson
Opinions expressed are those of the author, not the institution.