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 service program?

1016


How can we update a specific field in RPG?

1342


what is the maximum number of subroutines allowed in rpg?

1752


how to define global parameter in ile ?

1171


how many files can be defined in f specs?

2330


what is the purpose of indicators in rpg?

1791


how to write *pssr ?

1057


what is xfoot opcode ?

1796


How to add 99 menu (page down) option in menu creation..

2350


How to reverse the string in rpg

1795


what is the function of crtdupobj command?

2044


what are necessary keywords to code message subfile?

1737


define subsystem?

1604


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1651


what is the clp command to access a query/400?

2113