Chapter Contents

Previous

Next
The GDEVICE Procedure

COPY Statement


Copies a device entry and places the copy in the current catalog. The original device entry can be either in the current catalog or in a different catalog.

Requirements: You must have write access to the catalog to which the device entry is being copied.
Restriction: Not valid in browse mode.
See also: Creating or Modifying Device Entries
Featured in: Creating a Custom Device Entry with Program Statements


COPY device-entry where;

Where where must be one or both of the following:

FROM=<libref.>SAS-catalog

NEWNAME=new-device-entry


Required Arguments

device-entry
specifies the one-level name of the device entry to copy. The entry must exist in either the current catalog (the default) or the catalog specified by FROM=.

FROM=<libref.>SAS-catalog
names the catalog from which to copy device-entry.

NEWNAME=new-device-entry
specifies a name for the copy of the device entry that is placed in the current catalog. New-device-entry must be a valid name for a SAS catalog entry and cannot already exist in the current catalog.

If you copy device entries across catalogs and you do not specify a new name, the GDEVICE procedure uses the original name for the new device entry.


Chapter Contents

Previous

Next

Top of Page

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