![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Catalog: _copy |
| Syntax | |
| Details | |
| Example |
Syntax |
| CALL SEND (catalog-object-id, '_copy', target-catalog-name<, new-catalog-object>); |
| Argument | Type | Description |
|---|---|---|
| target-catalog-name |
C | specifies the two-level name of the target catalog to which the catalog that is associated with catalog-object-id is to be copied |
| new-catalog-object |
N | returns the object identifier of the new SAS Catalog object created for target-catalog-name |
| Details |
The _copy method copies the SAS catalog that is associated with catalog-object-id to a new SAS catalog. If the second parameter is specified, a new SAS Catalog object, associated with target-catalog-name, is created and its object identifier is returned.
| Example |
This example copies the SAS catalog, SASUSER.CAT1, to SASUSER.CAT2, creates a new SAS Catalog object for SASUSER.CAT2, and returns that object identifier in CATOBJ2:
catclass=loadclass('sashelp.fsp.catalog.
class');
catobj1=instance(catclass);
catobj2=0;
call send (catobj1, '_setup_', 'sasuser.
cat1');
call send (catobj1, '_copy_', 'sasuser.cat2',
catobj2);
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.