Statalist The Stata Listserver


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

RE: st: Preserve vs Save


From   "Rajesh Tharyan" <[email protected]>
To   <[email protected]>
Subject   RE: st: Preserve vs Save
Date   Sun, 7 Jan 2007 14:05:48 -0000

Hi,

When you save the file gets permanently changed.

With preserve you can undo all the changes you have made after making the
preserve command by the command restore.

However if you say preserve and then save the file. On reopening the restore
command will not work.

Regards
rajesh

As maarten sa

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maarten buis
Sent: 07 January 2007 14:01
To: [email protected]
Subject: Re: st: Preserve vs Save

--- Claude Francoeur <[email protected]> wrote:
> I do not understand the difference between the "preserve" and "save" 
> commands. I just started a new project, copied and pasted from an
> Excel sheet into Stata 9 data editor and saved the file as *.dta.
> Should I "preserve" my data?

-preserve- is a temporary solution for within one session of stata.
-save- is a permanent solution that continues to exist after you close
stata.

-preserve is thus useful if you want to change the data just to do some
calculations but don't care enough for this changed data to store it
permanently, and after you're done with the computations move back to
your original data.

So in your case you probably don't want to -preserve- your data.

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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