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 the purpose of the indara keyword?
which cl command can be used at program execution to redirect the file named in an rpg program?
how you will know whether you are in sfldrop or sflfold mode?
what is the difference between sflclr and sflinz?
a multiple format logical file is also known as?
define the rcvf command?
what is sflinz and sflrna?
difference between view and index ?
writing an sql statement from selecting records from two files using single statement and nested select statement.
when are the referential constraints executed?
Explain The Keywords Edtcde & Edtwrd?
What is the Difference between command attention key and command function key ?
what are different types of substems?
what is the maximum number of parameters allowed in rpg?
define a output queue?