|Difference between CRTDUPOBJ and CPYF command in AS400|
In this blog, we will discuss several differences between the two commands namely CRTDUPOBJ and CPYF. Both the commands create or copy the object and its data from one library to the other. But still, they both differ from each other which will be discussed in this blog.
|CRTDUPOBJ command on Logical file will create the
same object i.e. Logical file.
|CPYF command on a Logical file will result in a physical
|CRTDUPOBJ command needs a lock on file in order
to create the duplicate object.
|CPYF command does not need lock in order to copy the
|CRTDUPOBJ command will create an object either
with full data or no data.
|CPYF command can be used to copy a subset of records
by using RRN, Key values, INCCHAR, INCREL.
|CRTDUPOBJ command will create the duplicate of
|CPYF command can be used to copy file data only.|