Copying deleted records (COMPRESS parameter)

 

You might want to copy deleted records to preserve the relative record numbers of records that are copied from the from-file. You can copy both deleted and undeleted records from one physical file member to another by specifying the COMPRESS(*NO) parameter on a copy command.

If you do not use COMPRESS(*NO), only records that have not been deleted are copied from the from-file.

You can use this parameter on the CPYF command only.

 

Parent topic:

Selecting the records to copy

 

Related concepts


Specifying *ADD when copying files
Selecting records using a specified record format name (RCDFMT parameter)