DADiSP Worksheet Functions > Function Categories > Datasets, Worksheets and Labbooks > COPYDATASET
Copies a Series from a Dataset.
COPYDATASET("srcdname", "desdname", verbose, overwrite)
"scrdname" |
- |
A string. The source Dataset to copy from. The name can also contain a path and Labbook specifier. |
||||
"desdname" |
- |
Optional, a string. The destination Dataset to copy to. Defaults to the same Dataset name in "srcdname". |
||||
verbose |
- |
Optional. An integer, the message display flag:
|
||||
overwrite |
- |
Optional. An integer, the overwrite series flag.
|
An integer, 1 if the source Dataset is successfully copied to the destination Dataset, else 0.
copydataset("Demo4 UN1.1")
copies the Dataset RUN1.1 from the Demo4 Labbook to the Dataset RUN1.1 in current Labbook.
copydataset("Dir1ook1 UN1.1","Dir2ook2Job.2", 0)
Copies the Dataset RUN1.1 in the Book1 Labbook located in the Dir1 sub-directory to the Dataset Job.2 in the Book2 Labbook located in the Dir2 sub-directory. The copy is performed silently.
The specified Dataset names are case-sensitive.
The Dataset name must also contain the Version number.
The name string can contain directory and Labbook specifiers separated by the path delimiter.