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)').

This was last published in July 2001

Dig Deeper on Integrated File System (IFS)

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.



  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...