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

In Which Specs Arrays, Tables & Constants Are Defined?

1115


what is overlay?

1071


A join logical file has how many record formats?

1060


can you display a empty subfile?

1176


in conjunction with what other keyword must ovrdta and ovrata be used?

1475


In 'o' Specs What Is The Opcode For Write?

1112


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2707


what does dfu program you to do on a record?

1163


what is the difference between seton lr and retrn?

1966


How Many Specs Are There In Rpg & Which Are They?

1053


how to run other job when one job is active?

957


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

2304


Explain The Keywords Edtcde & Edtwrd?

1326


what is a non-join logical file?

1702


define the purpose/use for sflrna?

1574