Stata
Products Purchase Support Company
Search
   >> Home >> Resources & support >> FAQs >> Using a dataset that won't fit into RAM

How can I use a dataset that is larger than the available RAM?

Title   Using a dataset that won't fit into RAM
Author Alan Riley, StataCorp
Date January 1996

Load the dataset using the virtual memory system. This step will require that you start Stata with the /k option set large enough to hold the dataset. Once the dataset is loaded into memory, use the compress command to see if the variables can be stored using less memory. If so, save this dataset and exit from Stata. If you can now load the dataset into memory using only the available memory on the computer, then the problem is solved.

If your dataset is compressed and still will not fit into the available RAM of your computer, then use only those variables from the dataset that are necessary to run the commands in your analysis. If this allows you to load in the dataset using only the available memory on the computer, then the problem is solved.

Warning: If your analysis requires that you use the virtual memory system, then your analysis will take an exceedingly long time and will probably not finish before your patience runs out.
FAQs
What's new?
Statistics
Data management
Graphics
Programming Stata
Mata
Resources
Internet capabilities
Stata for Windows
Stata for Unix
Stata for Macintosh
Technical support
Resources & support
FAQs
Technical support
NetCourses
Short courses
Users Group meetings
Statalist
Links
Software updates
Software archives
Customer service
Manuals & supplements
Stata Journal
STB
Stata News
Stata Automation
Plugins

Site overview
Products
Resources & support
Company
Site index

© Copyright 1996–2008 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index