Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Merging data files in .txt format


From   David Ashcraft <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Merging data files in .txt format
Date   Sat, 24 Nov 2012 22:41:48 -0800 (PST)

Hello Statalist,

I have data files saved as .txt with titles bhcfQQYY where QQ is the quarter number and YY is the two digit year. I want to import and merge these files (48 in total) as one data set.When I am using -insheet-  importing all data as one variable (one column multiple rows) I digged it and found the problem as the data is using special character "^" for separating variables for each observation. Although I have solved this problem. But mow my problem is merging of data. Do I have to change each file and then merge or is there any other straight way to do it?

Any help will be highly appreciated,

David

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index