Chapter Contents

Previous

Next
Working with Spatial Data Using SAS/GIS Software

COPY Statement

COPY libref.catalog.entry ENTRYTYPE=type DESTCAT=libref.catalog DESTLIB=libref <options>

COPY copies a GIS catalog entry or data set. You can copy a single GIS object or include the dependent entries and data sets referenced by the source.


ENTRYTYPE Argument

ENTRYTYPE=type specifies the type of GIS catalog entry to copy. Values for type are


DESTCAT Argument

DESTCAT=libref.catalog specifies the destination for the copied catalog entries.


DESTLIB Argument

DESTLIB=libref specifies the destination for the copied data sets.


Optional Arguments

The following list contains descriptions of additional COPY statement arguments:

BLANK
BLANK specifies that internal pathnames should be cleared in the copied entries.

REPLACE
REPLACE specifies that existing catalog entries and data sets that have the same name as copied entries and data sets should be overwritten.

ALIAS
ALIAS=(old-lib-1=new-lib-1 <, ... ,old-lib-n=new-lib-n>) specifies libref translations. In each pair, new-lib is the libref to which to change and old-lib is the libref to change from.

SELECT
SELECT specifies which data sets or catalog entries referenced by the source entry should be copied. Values for this argument are

_ALL_
copy all dependent catalog entries and data sets. Equivalent to specifying both ENTRY and DATA.

ENTRY
copy all dependent catalog entries

DATA
copy all dependent data sets. Equivalent to specifying SPATIAL, LABEL, and OTHER.

SPATIAL
copy dependent spatial data sets

LABEL
copy dependent label data sets

OTHER
copy other dependent data sets (besides spatial and label data sets), such as linked attribute data sets


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.