Do you have a such experience ( V7R5 ) ?
I run CPYF twice with differnet option COMMPRESS (*YES / *NO ), but the same results
SOURCE file ( have #75 deleted records )
Source Creation Last Change Deleted
Member Size Type Date Date Time Records Records
source 211731464192 23/08/09 23/08/09 13:39:49 233272445 75
Text:
Total number of members . . . . . . . . . : 1
Total number of members not available . . : 0
Total records . . . . . . . . . . . . . . : 233272445
Total deleted records . . . . . . . . . . : 75
Total of member sizes . . . . . . . . . . : 211731464192
1.option COMMPRESS (*YES )
*created empty file via command CRDUPOBJ from SOURCE with parameter DATA(*NO)
*CPYF FROMFILE(SOURCE) TOFILE(TARGET_YES) MBROPT(*REPLACE)
Source Creation Last Change Deleted
Member Size Type Date Date Time Records Records
TARGET 211731423232 23/09/06 23/09/06 14:25:24 233272445 0
Text:
Total number of members . . . . . . . . . : 1
Total number of members not available . . : 0
Total records . . . . . . . . . . . . . . : 233272445
Total deleted records . . . . . . . . . . : 0
Total of member sizes . . . . . . . . . . : 211731423232
Here is Total deleted records = 0 , which is OK
2.option COMMPRESS (*NO )
*created empty file via command CRDUPOBJ from SOURCE with parameter DATA(*NO)
*CPYF FROMFILE(SOURCE) TOFILE(TARGET_NO) MBROPT(*REPLACE)
Source Creation Last Change Deleted
Member Size Type Date Date Time Records Records
TARGET_NO 211731423232 23/09/06 23/09/06 14:25:24 233272445 0
Text:
Total number of members . . . . . . . . . : 1
Total number of members not available . . : 0
Total records . . . . . . . . . . . . . . : 233272445
Total deleted records . . . . . . . . . . : 0
Total of member sizes . . . . . . . . . . : 211731423232
Here is Total deleted records = 0 , which should be 75, am I right ?
HELP for COMPRESS (*NO) ob CPYF command
Both the deleted and nondeleted records are copied to the to-file.
HELP for COMMPRESS option
Explanation about COMMPESS parameter on CPYF command
https://www.ibm.com/docs/en/i/7.5?topic=copy-copying-deleted-records-compress-parameter
Compress out deleted records (COMPRESS)
Specifies whether the to-file contains a compressed form of the from-file. Compression occurs when deleted records in the from-file are not copied to the to-file. *NO is used to copy all records when the from-file and to-file are both physical files. If from-file is delete-capable and the to-file is not delete-capable, then *YES must be specified.
*YES
The records copied to the to-file are compressed. Deleted records that exist in the from-file are not copied to the to-file.
*NO
Both the deleted and nondeleted records are copied to the to-file.
Thx Roman
------------------------------
Roman HORSKY
------------------------------