Chapter Contents

Previous

Next
SAS Catalog Entry: _copy

SAS Catalog Entry: _copy



Copies a SAS Catalog entry


Syntax
Details
Example

Syntax

CALL SEND (catentry-object-id, '_copy', target-entry-name<, new-catentry-object>);

Argument Type Description
target-entry-name C specifies the two-level name (entryname entrytype) of the target catalog entry to which the catalog entry that is associated with catentry-object is to be copied
new-catentry-object
N returns the object identifier of a SAS Catalog Entry object created for target-entry-name


Details

The _copy method copies the SAS Catalog entry that is associated with catentry-object-id and names the new copy target-entry-name. If new-catentry-object is specified, a new SAS Catalog Entry object, corresponding to the target-entry-name, is created and its object identifier is returned.


Example

This example copies SASUSER.CAT1.MYPROG.PROGRAM to SASUSER.CAT1.ENTRY.PROGRAM, and then creates a new SAS Catalog Entry object for SASUSER.CAT1.ENTRY.PROGRAM and returns that object identifier in NEWCATENTRY:

cateclass=loadclass('sashelp.fsp.catentry.
          class');
catentobj=instance(cateclass);
newcatentry=0;
call send (catentobj, '_setup_', 
          'sasuser.cat1.myprog.program');
call send (catentobj, '_copy_', 
          'entry.program', newcatentry);


Chapter Contents

Previous

Next

Top of Page

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