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
How to call one program from another program in RPG? please help me with the code
what is the use of sflnxtchg?
can I touch the array during treatments?
what was the robotech rpg?
how can I tell when to replace the array?
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?
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?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
What is a record lock error?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
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?
How to handle duplicate error handling in RPG?
What is the difference between copybooks and subprocedures in as400?
what is the necessary keyword needed to scroll subfile records?
which program rpg or cl is efficent to update a transaction onto a database file and why ?