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
how do you read changed records backward in subfile?
define the purpose of the leave operation?
what is the purpose of overrides?
define a shared access path?
what keyword must be used with protect keyword ?
what is the difference between udate and the system date?
How to Define a Procedure in RPG?
In RPG How to read a records from a file without using read opcodes?
what is a query can be run in which mode?
Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..
How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz
how can you execute a command from within an rpg program without calling a clp program?
what is a primary file?
which are the relational operators in rpg?
Write a logic program for knowing the repeated number of a vowels in a given program?