we have 2 PF files with same name, how to copy data's from
one file to another through RPG program logic?

Answer Posted / perumal

Declare the 2 PF files in the RPG program. Rename either
one of the file record format in F Spec
If the fields also same use PREFIX Keyword uisng D spec if
you are using ILE

Or RPG/400 use I spec and rename the fields

Then read from the file and write into the another file

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the use of dftwrt display keyword?

1131


what is the purpose of overrides?

1021


what is the function of cpysplf command?

977


Difference Between Skip Before & Space Before?

674


what are members?

610






what is full form for dds?

740


what is a composite key?

1012


What are the mandatory keywords of sub file?

746


when is a tag statement used in rpg?

1361


define the purpose of the *bcat function?

909


what is cab?

663


define the purpose of the *cat function?

982


what are dds required for subfile?

582


How can we read file using curser? how to define a curser?

826


how many files, printer files you can describe in a rpg?

632