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
How to reverse a string using RPG?
how you will know whether you are in sfldrop or sflfold mode?
what is the maximum number of subfiles that can specified in a display file ?
Difference Between Ca & Cf?
in which specification the report layout can be defined?
which are control break logic indicators?
what is the syntax for plist?
what is the maximum number of files allowed in rpg?
what the purpose of ovrdta, ovrata keywords?
describe the difference between the dowxx and douxx operations?
when do you explicitly open files and close files in an rpg program?
What is the use of jdftval in as400?
what are the limitations of cl (compare to rpg) ?
what is the difference between sflclr and sflinz?
How to Define a Procedure in RPG?