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 full form for dds?
What is program status data structure(psds) in as400?
what is the use of unique keyword and what level it is defined?
define the purpose of the *bcat function?
what are the basic features of seu?
What is the draw back of Procedures? why we are going to Modules?
during input operation which indicator position is seton if there is a record lock?
What are the different opcodes used for file operation on a subfile in a rpg pgm?
difference between sflrcdnbr and sflnxtchg?
What is the as400 called now?
what are the different opcodes available in rpg for database access ?
the maximum number of subfiles that can be active for a single file is ____ .
what does check opcode do ?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?