Previous Topic: BLOADNext Topic: DELETE


COPY

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.

Important! When using the COPY control statement: