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

Re: st: append multiple data sets


From   Devra Golbe <[email protected]>
To   [email protected]
Subject   Re: st: append multiple data sets
Date   Tue, 24 Aug 2004 13:05:59 -0400

findit append multiple
leads to Roger Newson's dsconcat, which concatonates multiple Stata datasets into memory. Perhaps this will suit your needs.

Devra Golbe
devra.golbe at hunter.cuny.edu

At 11:39 AM 8/24/2004, you wrote:

I'm trying to append multiple datasets, but "append using" only adds two
datasets at a time. I tried the following program to append "timc1.dta",
"timc2.dta", "timc3.dta"... in one step, but it only appends two datasets.

********************************
program define apx
        local i = 1
        while `i'<=10 {
                use timc`i', clear
                append using timc`i'
                local i = `i' + 1
        }
end
apx
********************************

I'll appreciate any suggestions on how to accomplish this task.

Leonelo Bautista

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