what is the difference between the cpyf command crtdupobj
command?

Answer Posted / shikha

Copy File (CPYF) command could be used to copy the source
into a database file.
(CRTDUPOBJ) command to create a copy of an existing object.
The duplicate object has the same object type and
authorization as the original object and is created into
the same auxiliary storage pool (ASP) as the original
object. The user who issues the command owns the
duplicate object.

If you create a duplicate object of a journaled file, the
duplicate object (file) will not have journaling active.
However, you can select this object for journaling
later. If you create a duplicate object and the object
(file) has no members, the last used date field is blank
and the count for number of days used is zero.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call one program from another program in RPG? please help me with the code

1494


what is the use of sflnxtchg?

1040


can I touch the array during treatments?

958


what was the robotech rpg?

887


how can I tell when to replace the array?

918


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1691


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4776


do you use message subfiles? What are the necessary keywords required coding a message subfile?

917


What is a record lock error?

1512


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1770


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

735


How to handle duplicate error handling in RPG?

1994


What is the difference between copybooks and subprocedures in as400?

1104


what is the necessary keyword needed to scroll subfile records?

931


which program rpg or cl is efficent to update a transaction onto a database file and why ?

1005