we have 2 PF files with same name, how to copy data's from
one file to another through RPG program logic?
Answer Posted / syam
You can't declare 2 pf in the RPG program with same name.
If you declare, system will give error on compilation
(*RNF2026 30).
You can rename same record name in RPG program.
You can rename fiel name in RPG program.
You can't keep 2 pf in one library with same.
2 pf with same name in 2 differned library, you can copy
to 1 pf thru CPYF cl command.
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
what are the various types of device files?
what opcode could be used to test an alphanumeric field for all numeric values?
what is the version of os/400 that we have?
How Many Specs Are There In Rpg & Which Are They?
how to pick up the changed records every time in a subfile after the first change made ?
what is xfoot opcode ?
what is the maximum number of files allowed in rpg?
explain the purpose of keep and assume keywords?
which type of object is used in db2/400?
what are the three line types in rlu ?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
how to write *pssr ?
when are the unique constraints executed?
Can we debug the MSGW JOBS?
In RPG How to read a records from a file without using read opcodes?