help for savesome

Save subset of data

savesome [varlist] [if exp] [in range]
using filename [, old save_options]

Description

savesome saves part of the data in memory to filename.
If filename is specified without an extension, .dta is used.

Options

old specifies use of -
depending on which is current in your Stata -
either the saveold command or save, old to save
datasets to be readable by an older version of Stata.

save_options are (other) options of save or,
as the case may be, saveold. See help on save either way.

Examples

. savesome if foreign using foreign.dta

. savesome mpg weight make using small

. savesome mpg weight make using small6, old

Author

Nicholas J. Cox, Durham University, U.K.

n.j.cox@durham.ac.uk

Acknowledgments

(August 2011) Kenneth L. Simons suggested a fix to cope with spaces in filenames.

(February 2015) David Radwin alerted me to a problem with the old option, which was not finding saveold in recent versions of Stata.

Also see

On-line: help for save

Manual: [D] save