what is the difference between the cpyf command crtdupobj
command?

Answer Posted / indraneel

cpyf command is to be used when you want to copy the data
of the file. For eg. if want a selection of data that can
be done. It is not necessary that from file and to file
record format are exactly same

In case of crtduobj, a clone of the object is created.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

693


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?

1445


what is an online rpg?

721


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2045


What is difference between bind by copy and bind by reference?

1718






What is file identifier where we can use?

639


how do you use commitment control in rpg?

750


What is ment by record level identifier?

645


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2365


Explain mdt?

659


what is file information data structure?

1356


explain sflclr, sflend, sfldlt, and sflcsrrrn?

880


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

684


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

546


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

496