Tips to improve the performance of the CPYFRMIMPF command
Follow these steps to improve the performance of the CPYFRMIMPF command:
Delete any logical keyed files based on the TOFILE.
Remove all constraints and triggers of the TOFILE.
Ensure the FROMFILE records will be copied correctly by attempting
to copy a few of the records. Copy a few of the records using the FROMRCD
and number of records option.
Use the ERRLVL(*NOMAX) parameter after you know you can copy the
data correctly.
When the ERRLVL(*NOMAX) parameter is used, record blocking increases
performance. If an error in writing a record occurs during record
blocking, the number of records listed as being copied in the completion message,
CPC2955, might not be accurate.