Statalist The Stata Listserver

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

st: splitting a list

From   "Rajesh Tharyan" <>
To   <>
Subject   st: splitting a list
Date   Fri, 20 Oct 2006 15:57:38 +0100

Hi all,

I have a file with one variable and 5000 observations. Is there a way to
create say 10 different files with 500 observations in each and serially
number them . i.e the first file would contain obs 1/500, the next file
would contain 501/1000 observations and so on. 

One option I had in mind was use savesome (a user written ado) 

For example

savesome var in 1/500 using file1.dta

but I am not sure how to automate the process..


*   For searches and help try:

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