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 various types of device files?

1686


what opcode could be used to test an alphanumeric field for all numeric values?

1775


what is the version of os/400 that we have?

1638


How Many Specs Are There In Rpg & Which Are They?

1101


how to pick up the changed records every time in a subfile after the first change made ?

1817


what is xfoot opcode ?

1829


what is the maximum number of files allowed in rpg?

1643


explain the purpose of keep and assume keywords?

1808


which type of object is used in db2/400?

1057


what are the three line types in rlu ?

2190


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?

1618


how to write *pssr ?

1078


when are the unique constraints executed?

1130


Can we debug the MSGW JOBS?

1333


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

1526