Copies a database artifact.
Syntax
COPYOBJECT objType sourceApp sourceDb sourceObj destApp destDb destObj
Parameter | Description |
---|---|
objType | Type of artifact to list. 0 - Abort 1 - Outline object (not available) 2 - Calculation script 3 - Report script 4 - Rules file 5 - Alias table 6 - Structure file 7 - Backup file (not available) 8 - Worksheet of any type (not available) 9 - Text object 10 - Partition 11 - Linked Reporting Object 12 - Selection 13 - Wizard |
sourceApp | Name of the application that includes the artifact to copy. |
sourceDb | Name of the database that includes the artifact to copy. |
sourceObj | Name of the artifact to copy. |
destApp | Name of the application for the new artifact. |
destDb | Name of the database for the new artifact. |
destObj | Name of the artifact copy. |
Notes
objType parameter values 6 and 7 are deprecated.
Example
COPYOBJECT "2" "FINANC95" "SALES95" "OLDOBJ" "FINANC96" "SALES96" "NEWOBJ";