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
which of the following operations does not zero the field flda defined as 4,0?
how do you specify the number of records to roll in a subfile ?
what are the different types of variables available in cl?
how can I control the way a remote browser uses its cache?
can you have multiple key lists for a single file ?
Difference Between Interactive & Batch Job?
can a single screen format occupy a screen area above and below a subfile format ?
an access path may be in which sequence?
Can we debug the MSGW JOBS?
is there any way to dynamically merge other html scripts into a given html?
how do you use exceptional write in c specs?
what is sflinz and sflrna?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
how do you know that records are locked?
how do handle file exception/error?