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 the purpose of the indara keyword?

1832


which cl command can be used at program execution to redirect the file named in an rpg program?

1241


how you will know whether you are in sfldrop or sflfold mode?

1107


what is the difference between sflclr and sflinz?

1842


a multiple format logical file is also known as?

1150


define the rcvf command?

1795


what is sflinz and sflrna?

1573


difference between view and index ?

1200


writing an sql statement from selecting records from two files using single statement and nested select statement.

1251


when are the referential constraints executed?

1166


Explain The Keywords Edtcde & Edtwrd?

1451


What is the Difference between command attention key and command function key ?

1428


what are different types of substems?

2362


what is the maximum number of parameters allowed in rpg?

1813


define a output queue?

1670