Previous Topic: Summary InformationNext Topic: Syntax


COPY

Use the COPY command to copy sequential, partitioned, or VSAM data sets. Tailor the copy function with keywords to create one or more copies of data in the format that you specify.

You can exclude records from the copy using selection criteria or by modifying the output data through data manipulation keywords. You can also use the CHANGE keyword to change a record's length. Format copied records using a copybook and print records in character, hex, or formatted mode.

To specify the ddname of the file to be copied, use the INFILE keyword, and the ddname of the output data set in the OUTFILE keyword.

You cannot use the COPY command to copy load modules.