Chapter Contents

Previous

Next
SAS Data File: _copy

SAS Data File: _copy



Copies the SAS data file for a SAS Data File object to another data file and optionally creates a new SAS Data File object for the copy


Syntax
Example

Syntax

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

Argument Type Description
target-datafile-name
C specifies the two-level name of the SAS data file to which the SAS data file associated with datafile-object-id is to be copied
new-datafile-object
N returns the object identifier of the SAS Data File object created for target-datafile-name. If you do not specify new-datafile-object, a new SAS data file, target-datafile-name, is created, but a SAS Data File object for that data file is not created.


Example

This example copies SASUSER.FITNESS to SASUSER.DATA and returns the SAS Data File object identifier for SASUSER.DATA into DFILE2:

dataclass=loadclass
          ('sashelp.fsp.datafile.class');
dfile1=instance(dataclass);
dfile2=0;
call send (dfile1, '_setup_',
           'sasuser.fitness');
call send (dfile1, '_copy_', 
           'sasuser.data', dfile2);


Chapter Contents

Previous

Next

Top of Page

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