Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the different opcodes available in rpg for database access ?

1606


What Is The Purpose Of The "n" In The Following Calculation Specification?

1072


how will you display a particular page in subfile ?

1610


explain the difference between defining subfile and message-subfile?

1765


an access path may be in which sequence?

1102


how do you use commitment control in rpg program ?

1972


Explain The Keywords Edtcde & Edtwrd?

1326


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2523


what is *iso date format?

1005


define what a data area is along with a brief example of what it may be used for?

1587


can a join logical file be updated?

966


define the purpose of the *cat function?

1573


What is program status data structure(psds) in as400?

1022


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..

2236


describe the difference between the dowxx and douxx operations?

2027