Return type:
Applies to:
targ-dataset-handle:COPY-DATASET ( src-dataset-handle , append-mode, replace-mode , loose-copy-mode , pairs-list , current-only, name-prefix )An optional logical expression where TRUE indicates that the AVM copy the ProDataSet object temp-tables in an append mode.The AVM ignores this expression when replace-mode is TRUE.An optional logical expression where TRUE indicates that the AVM copy the ProDataSet object temp-tables in a replace mode.An optional logical expression where TRUE indicates that the AVM copy the ProDataSet object temp-tables in a loose-copy mode. That is, it relaxes the requirement that the metaschema for the source and target temp-tables be the same.An optional character expression that evaluates to a comma-delimited list of the target and source temp-table pairs to be copied. Following is the pairs-list syntax:
"target-table1,source-table1 ,target-table2,source-table2 "An optional character expression used as the prefix for naming the target ProDataSet. If the parameter is not passed, or is passed as the Unknown value (?), the AVM uses the default "cpy" prefix. If the parameter is passed as an empty string "", then no prefix is added and the target ProDataSet will have the same name as the source.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.
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.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |