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
explain the use of dftwrt display keyword?
what is the purpose of overrides?
what is the function of cpysplf command?
Difference Between Skip Before & Space Before?
what are members?
what is full form for dds?
what is a composite key?
What are the mandatory keywords of sub file?
when is a tag statement used in rpg?
define the purpose of the *bcat function?
what is cab?
define the purpose of the *cat function?
what are dds required for subfile?
How can we read file using curser? how to define a curser?
how many files, printer files you can describe in a rpg?