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 / perumal

Declare the 2 PF files in the RPG program. Rename either
one of the file record format in F Spec
If the fields also same use PREFIX Keyword uisng D spec if
you are using ILE

Or RPG/400 use I spec and rename the fields

Then read from the file and write into the another file

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do handle file exception/error?

1107


during input operation which indicator position is seton if there is a record lock?

1525


define subsystem?

1569


which are control break logic indicators?

1047


under given circumstances, my cgi should link to another site. How to implement this?

952


what is the purpose of dynslt keyword?

1687


how do you read changed records backward in subfile?

1047


what opcode will be used to test the zone of a character field?

1728


how can I control the way a remote browser uses its cache?

1126


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

1744


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

1012


how many specifications are there in rpg/400? What are they?

1901


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

1059


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

1030


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

3213