CPYF and CRTDUPOBJ
185 pts.
0
Q:
CPYF and CRTDUPOBJ
What is the actual difference between CPYF and CRTDUPOBJ
ASKED: Mar 19 2009  12:36 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Hi,

CPYF only works with files, CRTDUPOBJ works with other objects as well. CPYF has much more capability for selection of records and is really built as a tool for data manipulation, CRTDUPOBJ doesn't have this functionality - if you use CRTDUPOBJ for a file you can only copy all data or no data.

Regards,

Martin Gilbert.

Hi,

You can use
CRTDUPOBJ to Create an Objecte (replica) , but it will not contain any member .

CPYF to Copy set of records from one file to another , here both members must be existed.
If you haven't have an object of the to file you can create while CPYF CREATEFILE(*YES)

Regards

KHADAR.


That's not true - CRTDUPOBJ does create a member if there's one in the original file and if it's available (not locked) when running the command.

Regards,

Martin Gilbert.
Last Answered: Mar 23 2009  2:45 PM GMT by Gilly400   23625 pts.
Latest Contributors: Khadar   90 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0