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 / venkat b

You can give 2 different names to the different Physical
Files like the following code and then use the
keyword "EXTFILE" to give a fully qualified PF -

Fname1 if f 10 disk extfile(LIBRARY1/filename)
Fname2 if f 10 disk extfile(LIBRARY2/filename)
RENAME(rcdname1:rcdname2)

Then, use DOW, Read and write.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is *iso date format?

1008


How to Define a Procedure in RPG?

1668


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

1285


What is data structure in as400? What is the use of data structure?

1026


what does vldcmdkey means?

1311


which type of object is used in db2/400?

1002


how can you execute a command from within an rpg program without calling a clp program?

1907


what is the use of unique keyword and what level it is defined?

1521


define the purpose of the iter operation?

1753


What Is The Error If We Don't Get Login Screen?

1029


How to avoid using indicators in ile ?

1217


how do you know that records are locked?

1860


what is maximum number of arrays allowed in rpg?

1824


What is the draw back of Procedures? why we are going to Modules?

1721


define the purpose of the %sst function?

1549