home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!psuvm!auvm!CC.MSSTATE.EDU!JGB1
- Message-ID: <9212181439.AA00425@JayRell.CC.MsState.Edu>
- Newsgroups: bit.listserv.dbase-l
- Date: Fri, 18 Dec 1992 08:39:34 CST
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- From: John G Jay Burrell <jgb1@CC.MSSTATE.EDU>
- Subject: Re: Packing a Database (Clipper 5.01 question)
- Lines: 38
-
- > > In your message of 17 Dec 1992 at 1857 CST, you write:
- > > In article <9212172241.AA00396@JayRell.CC.MsState.Edu> John G Jay Burrell
- > > <jgb1@CC.MSSTATE.EDU> writes:
- > > >>
- > > >> Question: How can I pack a subset of deleted records???
- > > >>
- > > >How 'bout:
- > > > Copy to <new.dbf> for !( date>=CtoD('01/01/92') .AND. ;
- > > > date<=CtoD('01/31/92')
- > > > )
- > > > Erase <old.dbf>
- > > > Rename <new.dbf> to <old.dbf>
- > > >
- > >
- > > Would this work in a multi-user enviroment???
- > >
- > > Just Curious.
- > >
- > > Is there a more efficient way of doing this??
- > >
- > > If this were a very large file, disk space may become a problem.
- > >
- > If your free space is running close enough that you can't mirror your
- > largest file, you're running too close to the edge ( 1/2 :) ).
- >
- Amen!
-
- This is EXACTLY what Pack does ( with out the condition, of course!) - you
- MUST have exclusive use of the database to pack and you must have exclusive
- use here to erase the file and rename... Pack, too, simply copies all non-
- deleted records to a temp file, deletes the old, and renames the temp to
- the original filename.... Yes, pack requires the same amount of space - that's
- why it takes so long on large files to "remove" only a few records...
-
-
- Jay Burrell E-Mail: jgb1@CC.MsState.Edu
- Computing Center & Services Voice: (601) 325-7025
- Mississippi State University Fax: (601) 355-8921
-