we have 2 PF files with same name, how to copy data's from
one file to another through RPG program logic?
Answer Posted / venkat b
You can give 2 different names to the different Physical
Files like the following code and then use the
keyword "EXTFILE" to give a fully qualified PF -
Fname1 if f 10 disk extfile(LIBRARY1/filename)
Fname2 if f 10 disk extfile(LIBRARY2/filename)
RENAME(rcdname1:rcdname2)
Then, use DOW, Read and write.
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
what is *iso date format?
How to Define a Procedure in RPG?
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
What is data structure in as400? What is the use of data structure?
what does vldcmdkey means?
which type of object is used in db2/400?
how can you execute a command from within an rpg program without calling a clp program?
what is the use of unique keyword and what level it is defined?
define the purpose of the iter operation?
What Is The Error If We Don't Get Login Screen?
How to avoid using indicators in ile ?
how do you know that records are locked?
what is maximum number of arrays allowed in rpg?
What is the draw back of Procedures? why we are going to Modules?
define the purpose of the %sst function?