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 does defn do?
what is rpg fixed logic cycle?
how to validate input values in display file ?
what are different record spacing keywords in rlu ?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
what is the maximum number of parameters allowed in rpg?
what is the purpose of ovrdta (override data) keyword?
what is the disadvantage of using global variable?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
what is maximum number of arrays allowed in rpg?
In RPG How to read a records from a file without using read opcodes?
is it there an easy way to determine if an html section is available to issue a wrtsection upon?
how can I control from my cgis the cache of a remote browser?
What is %CHECK?