Previous Topic: CLOSE

Next Topic: COMPILE

COPY

Copies an IMOD from a sequential file to an IMOD file or from one IMOD file to another.

Syntax

Use this format for the COPY command:

COPY IMOD {name1|&LISTn} TO dd1 FROM dd2 [REPLACE] [NEWNAME name2]

Parameters

The COPY command takes these parameters:

Parameter

Description

name1

Name of the IMOD to copy. This name is assigned to the new IMOD unless you specify NEWNAME.

&LISTn

Name of the list containing the IMODs to be compiled.

dd1

DDname of the target IMOD file.

dd2

DDname of the input file, either an IMOD file or a sequential file.

REPLACE

Copy operation replaces an existing IMOD of the same name. If an IMOD of the same name does not already exist, it is added.

name2

Name to assign to the new IMOD. If name1 is specified as a list, you cannot specify name2. The default is name.

Usage Note

To copy an IMOD to a sequential file, use the EXTRACT command.