Now, Get RPG Codes in all three formats only on this website on every RPGLE related programming article.

Fixed, /Free and Fully Free RPG


Difference between CRTDUPOBJ and CPYF command in AS400

Difference between CRTDUPOBJ and CPYF command in AS400
Difference between CRTDUPOBJ and CPYF command in AS400,CPYF, crtdupobj
Difference between CRTDUPOBJ and CPYF command in AS400

Differences

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 CPYF
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
file.
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
data.
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
any object.
CPYF command can be used to copy file data only.

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain