Problem solve Get help with specific problems with your technologies, process and projects.

Faster CPYF file command

Here you'll learn a faster CPYF file command.

When doing a CPYF(Copy File) command, you can speed up the copy of a keyed file by changing one parameter. The parameter: Copy from record number . .*START to copy from record number.....1 This will cause the Keyed file that is being copied to be copied sequentially instead of being copied in Keyed Order. For a large keyed file the time of the Copy can be greatly reduced. If you use the CPYF command frequently you can create a duplicate object of CPYF(CRTDUPOBJ) and name it FCOPY and then use the CHGCMDDFT to change the Variable to 1. CHGCMDDFT CMD(FCOPY) NEWDFT('FROMRCD(1)').


Dig Deeper on Integrated File System (IFS)

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close