COPY

The COPY control statement is used to copy a database. The output database should be a newly created, empty database.
view122
The COPY control statement is used to copy a database. The output database should be a newly created, empty database.
The high-level name of the output database must have been defined with the NAME control statement (or the PARM parameter of the EXEC JCL statement).
Syntax:
COPY 
from-name reserve-option buffer-option
where:
  • from-name
    Specifies the high-level name of the database to be copied
    This operand is required.
  • reserve-option
    Specifies either RESERVE to place a reserve on the output database for the duration of the copy operation or NORESERVE to not place a reserve on the output database
    Specify NORESERVE only if you can be certain that no one else is updating the output database while the COPY operation is proceeding. If omitted, RESERVE is assumed.
  • buffer-option
    Specifies either BUFFER, to buffer records written to the output database which improves performance and reduces I/O time, or NOBUFFER to eliminate buffering
    If omitted, NOBUFFER is assumed.
When using the COPY control statement:
  • The CA View archival started task, SARSTC, SARFSS, SARXTD, and CA Deliver-direct-to-CA View must be inactive.
  • The destination database must be new and unused.
    When using BUFFER, an unsuccessful completion could corrupt the output database.
  • The CA View tape datasets retain the same name after SARDBASE COPY. Do not uncatalog these tape datasets. CA View will uncatalog these tapes when all reports have been expired from the tape. For more information, see
    Uncataloging Tapes
    in the Tape Archival Data Set section of Data Sets and Environmental Considerations.