PreviousNextIndex

COPY-DATASET( ) method

Copies a source ProDataSet object to a target ProDataSet object. The AVM empties the target ProDataSet object temp-tables of all records before copying the source ProDataSet object, by default.

Return type: LOGICAL

Applies to: ProDataSet object handle

Syntax
targ-dataset-handle:COPY-DATASET( src-dataset-handle [, append-mode 
    [, replace-mode [, loose-copy-mode [, pairs-list [, current-only
    [, name-prefix ] ] ] ] ] ] ) 

targ-dataset-handle
src-dataset-handle
append-mode
replace-mode
loose-copy-mode
pairs-list
current-only
name-prefix

When the AVM copies the source ProDataSet object, it copies each temp-table in its entirety and in the order in which the temp-table was defined. That is, it does not copy the temp-tables in an interleaved and nested manner based on their data relations. If either the source or target ProDataSet has one or more extra temp-tables at the end, the extra temp-tables are ignored.

When the AVM copies a ProDataSet object in any mode, except loose-copy mode, and the target ProDataSet object has a metaschema (that is, temp-table and relation definitions), the source ProDataSet object metaschema must be the same. If the source and target ProDataSet object metaschema is not the same, the AVM generates a run-time error. If the target ProDataSet object is a newly created dynamic object with only a handle and no metaschema, the AVM copies the source ProDataSet object including its metaschema.

Note: If the source or target (but not both) ProDataSet has any before-table records, you can use COPY-DATASET on that ProDataSet. However, if append mode or replace mode is specified and the target ProDataSet has any before-table records, the AVM generates a run-time error.

See also: ATTACH-DATA-SOURCE( ) method, FILL-MODE attribute, COPY-TEMP-TABLE( ) method


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex