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
In Which Specs Arrays, Tables & Constants Are Defined?
what is overlay?
A join logical file has how many record formats?
can you display a empty subfile?
in conjunction with what other keyword must ovrdta and ovrata be used?
In 'o' Specs What Is The Opcode For Write?
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
what does dfu program you to do on a record?
what is the difference between seton lr and retrn?
How Many Specs Are There In Rpg & Which Are They?
how to run other job when one job is active?
How to add 99 menu (page down) option in menu creation..
Explain The Keywords Edtcde & Edtwrd?
what is a non-join logical file?
define the purpose/use for sflrna?