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 do handle file exception/error?
during input operation which indicator position is seton if there is a record lock?
define subsystem?
which are control break logic indicators?
under given circumstances, my cgi should link to another site. How to implement this?
what is the purpose of dynslt keyword?
how do you read changed records backward in subfile?
what opcode will be used to test the zone of a character field?
how can I control the way a remote browser uses its cache?
how to pick up the changed records every time in a subfile after the first change made ?
how you will know whether you are in sfldrop or sflfold mode?
how many specifications are there in rpg/400? What are they?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
What is data structure in as400? What is the use of data structure?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .