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 service program?
How can we update a specific field in RPG?
what is the maximum number of subroutines allowed in rpg?
how to define global parameter in ile ?
how many files can be defined in f specs?
what is the purpose of indicators in rpg?
how to write *pssr ?
what is xfoot opcode ?
How to add 99 menu (page down) option in menu creation..
How to reverse the string in rpg
what is the function of crtdupobj command?
what are necessary keywords to code message subfile?
define subsystem?
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?
what is the clp command to access a query/400?