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

how does union file maintains record formats?

632


what is message file?

604


how do you read changed records backward in subfile?

617


records can be read/update/deleted with which file?

639


is it possible to create a physical file without dds?

1206






hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

2132


what is a query can be run in which mode?

865


in conjunction with what other keyword must ovrdta and ovrata be used?

925


What is array in as400? What are the types of array?

630


How to reverse the string in rpg

1204


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?

947


what does check opcode is used?

976


what is externally described file ?

943


What Is Ddm ?

1042


what is overlay?

685