[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New version of -dsconcat- on SSC

From   "Newson, Roger B" <>
To   "''" <>
Subject   st: New version of -dsconcat- on SSC
Date   Mon, 27 Jul 2009 10:03:23 +0100

Thanks to Kit Baum, a new version of the -dsconcat- package is now available for download from SSC, In Stata, use the -ssc- command to do this, or -adoupdate- if you already have an old version of -dsconcat-.

The -dsconcat- package is described as below on my website. The new version has been updated to Stata Version 10 (on the eve of the official release of Stata Version 11). It also has an option -append- allowing the user to append the input file datasets to the existing dataset in memory, and a -fast- option for programmers.

I am not sure that there will be any need for a Stata 11 version of -dsconcat-, because the new Stata 11 -append- command seems to have a lot of the power of -dsconcat-. However, some of us will still be using Stata 10 for a while.

Best wishes


Roger B Newson BSc MSc DPhil
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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

package dsconcat from

      dsconcat: Concatenate a list of Stata data files into the memory

      dsconcat is a multiple-file version of use or append.  It takes, as input, a list
      of filenames, assumed to belong to Stata data files, and creates a new dataset in
      memory, containing a concatenation of the input data files, which may either
      replace any existing dataset in memory or be appended to any existing dataset in
      memory.  The new dataset contains all variables in all the input datasets (or a
      subset of variables specified by the subset() option), and all observations in
      all the input datasets (or a subset of observations specified by the subset()
      option), ordered primarily by source dataset and secondarily by order of
      observations within each source dataset.  For any one variable in the output
      dataset in memory, values of that variable are set to missing in any observation
      from an input dataset not containing that variable.  Optionally, dsconcat creates
      new variables specifying, for each observation, its input dataset of origin,
      and/or the sequential order of the observation in its input dataset of origin.
      Author: Roger Newson
      Distribution-Date: 24july2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index