what is the difference between the cpyf command crtdupobj
command?

Answer Posted / noah

cpyf copy file member is to copy file content to an existing
file. If file does not exist then user can create a new
file. The structure will be based on source file.

crtdupobj create duplicate object, create clone exactly as the
source file with structure and content with its link to prgram
and logical file and its authority setting as well. no need to
recompile pgm that use this file.

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to select highest score of each subject or how to select highest income of every month?

1288


What is file identifier where we can use?

639


are there any useful c runtime apis that I can call from rpg iv?

693


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?

4197


What are the types of identifiers?

564






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?

478


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1010


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5388


is this a rpg channel?

669


When it is desirable to describe files Internally?

1182


Explain mdt?

658


how does the rpg element work?

711


what is an online rpg?

719


what is *place and *auto keyword in prtf ?plz explain

2715


what is the procedure and explain about real time scenario.

1472