[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: dealing with directories in.ado files
Like Richard Williams, I am not clear on what you want to do,
but some misunderstandings seem evident here.
-preserve- and -restore- concern temporary saving
and re-using of datasets. Matrices and scalars
can't be saved with datasets.
Stata automatically creates (and destroys) temporary
files in what it thinks is a sensible directory or folder.
You needn't concern yourself with where that is.
Alternatively, if for some purpose you need
to make use of different directories or folders
then that is up to you and there is no correct way
to do it independent of your purpose.
> okay, the preserve-restore thing helps for the cases where
> I'm building matrices with a subset of
> the data. I'm "assuming" that the matrices and scalars you
> make when working with a different
> dataset are preserved for when you do the restore command.
> If I WERE to want to keep part of the
> dataset around though (say I wanted to take a subset of the
> data and then re-merge it with the
> ORIGINAL DATASET, then where would I keep the data from the
> original one before doing the restore?
> i.e. if you do something for people to use in different
> directories, then what path should be
> specified for this kind of thing? thanks for your help.
> On Mon, 20 Jun 2005 16:44:24 -0500
> Richard Williams <Richard.A.Williams.5@ND.edu> wrote:
> > At 02:15 PM 6/20/2005 -0700, Florence Neymotin wrote:
> >>Hi, I was wondering, if you are writing a .ado file to be
> used as a stata
> >>add-on, then if you need to do a preserve restore, what is
> the default to
> >>use as the directory for this? I wasn't sure whether
> "home" or the temp
> >>files associated with the stata program would be better here.
> >>Thank you,
> > I'm not sure I understand the question. You do not have to
> specify a directory when using
> >preserve and restore. Further, I suspect Stata doesn't
> write anything to disk, unless you have
> >allocated more memory than you have, but I could be wrong about that.
> > If you are talking about where to store your own personally
> written ado file, I imagine
> >c:\ado\personal (or whatever -adopath- tells you is the
> "personal" directory) is probably the
> >most common place.
> > If I'm not understanding you correctly, perhaps you could
> clarify exactly what it is you want.
* For searches and help try: