LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 5 Mar 2002 10:04:59 -0800
Reply-To:     Cassell.David@EPAMAIL.EPA.GOV
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "David L. Cassell" <Cassell.David@EPAMAIL.EPA.GOV>
Subject:      Re: tip: copy structure
Content-type: text/plain; charset=us-ascii

Tim and Salene <timandsalene@AARTWOLF.COM> wrote: > I recently noticed in V8 one can set OPTION OBS=0, then use PROC COPY to > copy both a dataset structure and any index definitions. Resetting > OBS=MAX and appending obs maintains both the structure and the > indecies. Oh, indexes. Anyway, using PROC COPY to copy the index > definitions as well as the variable definitions has made it much easier > to keep test beds in sync with developing code.

Indices. The plural is due to the Latin origin. [So what is the plural of Windex? codex? :-]

> Does anyone know, is it still faster to delete the index before > appending and rebuild it after?

If you're doing multiple appends, you'll probably find that it is faster to delete the index, do all the appends, and then rebuild the index (or indices :-). Your mileage may vary, but with many appends the non-sequential I/O becomes a bottleneck. [At least from my tests on my machines on my datasets. Maybe you'll see something different when you try it.]

David -- David Cassell, CSC Cassell.David@epa.gov Senior computing specialist mathematical statistician


Back to: Top of message | Previous page | Main SAS-L page