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...

I have a Physical File name 'File1', which is present in
two libraries named 'LIB1' & 'LIB2'. These 2 libraries are
listed in the library list. Would like to access data from
this file from these two libraries using RPG program. How
to do this, any idea?

Answer Posted / syam

In RPG use this
F FILE1 IF A E K DISK RENAME(file1:Afile1)
F FILE1 IF A E K DISK RENAME(file1:Bfile1)

In read, open and close use Afile1 and Bfile1

Is This Answer Correct ?    2 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Chain operation copies the record's data to the input buffer for the program?

1608


can I touch the array during treatments?

1181


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2643


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

3005


which program rpg or cl is efficent to update a transaction onto a database file and why ?

1243


how do you use commitment control in rpg?

1287


What are the types of identifiers?

1024


what is kids-rpg?

1127


what is *place and *auto keyword in prtf ?plz explain

3164


how can you display specific subfile page on the screen in unequal subfile?

1159


what is the use of sflnxtchg?

1266


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

1019


what is the difference between do while and do until?

1258


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

2411


how do I declare a minor?

1164