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

during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

989


what is file information data structure?

1775


what are the key words you must use when using a subfile?

897


How Chain operation copies the record's data to the input buffer for the program?

1323


How to handle duplicate error handling in RPG?

1978


how do I declare a table or array in rpg iv?

943


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

1508


what is the difference between do while and do until?

956


how do I declare a minor?

906


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?

724


what is the use of sflnxtchg?

1029


what is program status data structure?

1808


what is data area and how it is used in rpg program ?

1033


what do you mean by an input subfile, what are the keywords required?

1032


how can you display specific subfile page on the screen in unequal subfile?

908