CL400 difference between Copy File and CRTDUPOBJ command - skill-at/AS-400-Training GitHub Wiki

In CRTDUPOBJ for a logical file the created duplicate file will be also logical file and for a physical file the created file will also be a physical file. Even the record format identifier will also be the same. While in case of CPYF, if we are copying a logical file then the created file be a physical file not a logical file.