6. Loading and Unloading Databases : Copying Individual Database Objects : Copy Reports : Example: Copy Reports to Another Database
 
Share this page                  
Example: Copy Reports to Another Database
Assume the DBA wants to copy two reports she owns, parts_restock and parts_on_order, from the inventory database to the orders database. The file name textfile.rw is selected as the temporary file name. The following command at the operating system prompt copies the reports out to a file:
copyrep inventory textfile.rw parts_restock parts_on_order
The following command at the operating system prompt copies the reports into the orders database:
sreport orders textfile.rw