Take a look at the COMPRESS parameter.  The default is *YES.  Text below
is from the V5R1 CL Reference:

"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. COMPRESS(*NO) is used to copy both deleted
and nondeleted records only when the from-file and to-file are both
physical files. If MBROPT(*ADD) is specified with COMPRESS(*YES),
deleted records that existed in the to-file member before the copy
operation are not compressed."

"If the from-file is a keyed physical file and a record number value is
specified for either the FROMRCD or TORCD parameters, the from-file is
copied in arrival sequence; therefore, the COMPRESS parameter determines
whether deleted records are copied. If COMPRESS(*NO) is specified, the
default value must be used for the INCCHAR and INCREL parameters."

Andy Nolen-Parkhouse

> >Is there a method of using CPYF with *MAP and *DROP which will keep
> >deleted records
> Me thinks
> Use   FROMRECORD(1)     - whatever the correct abbrv. parameter
keyword it
> is
> If you do that,  it forces a sequential copy from record 1 including
> deleted records.
> John Carr

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.