help use dialogs: use use with options
-------------------------------------------------------------------------------
Title
[D] use -- Use Stata dataset
Syntax
Load Stata-format dataset
use filename [, clear nolabel]
Load subset of Stata-format dataset
use [varlist] [if] [in] using filename [, clear nolabel]
Menu
File > Open...
Description
use loads a Stata-format dataset previously saved by save into memory.
If filename is specified without an extension, .dta is assumed. If your
filename contains embedded spaces, remember to enclose it in double
quotes.
In the second syntax for use, a subset of the data may be read.
Options
clear specifies that it is okay to replace the data in memory, even
though the current data have not been saved to disk.
nolabel prevents value labels in the saved data from being loaded. It is
unlikely that you will ever want to specify this option.
Examples
. use http://www.stata-press.com/data/r11/auto
. replace rep78 = 3 in 12
. use http://www.stata-press.com/data/r11/auto, clear
. keep make price mpg rep78 weight foreign
. save myauto
. use make rep78 foreign using myauto
. describe
. use if foreign == 0 using myauto
. tab foreign, nolabel
. use using myauto if foreign==1
. tab foreign, nolabel
Also see
Manual: [D] use
Help: [D] compress, [D] datasignature, [D] fdasave, [D] haver, [D]
infile (free format), [D] infile (fixed format), [D] infix, [D]
insheet, [D] odbc, [D] save, [D] sysuse, [D] webuse