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

which of the following operations does not zero the field flda defined as 4,0?

1190


how do you specify the number of records to roll in a subfile ?

2176


what are the different types of variables available in cl?

1833


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

1214


can you have multiple key lists for a single file ?

1702


Difference Between Interactive & Batch Job?

1242


can a single screen format occupy a screen area above and below a subfile format ?

1683


an access path may be in which sequence?

1163


Can we debug the MSGW JOBS?

1339


is there any way to dynamically merge other html scripts into a given html?

1078


how do you use exceptional write in c specs?

1905


what is sflinz and sflrna?

1518


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

1123


how do you know that records are locked?

1966


how do handle file exception/error?

1183