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


Please Help Members By Posting Answers For Below Questions

what does defn do?

612


what is rpg fixed logic cycle?

656


how to validate input values in display file ?

667


what are different record spacing keywords in rlu ?

1207


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

934






can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3148


what is the maximum number of parameters allowed in rpg?

1036


what is the purpose of ovrdta (override data) keyword?

1067


what is the disadvantage of using global variable?

688


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

992


what is maximum number of arrays allowed in rpg?

1185


In RPG How to read a records from a file without using read opcodes?

961


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

563


how can I control from my cgis the cache of a remote browser?

677


What is %CHECK?

841