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 / divakar reddy

F FILE1 IF A E K DISK ExtFile('LIB1/FILE1')
RENAME(file1:Afile1)
F FILE1 IF A E K DISK ExtFile('LIB2/FILE1')
RENAME(file1:Bfile1)


This should work...

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Interviewer asked me write down DDS for load all subfile .can anybody write dds

1729


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

1155


What is ment by record level identifier?

1143


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1893


can you debug ile rpg program using isdb?

1267


what is file information data structure?

2201


what is a rpg?

1193


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

1143


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2315


are there any useful c runtime apis that I can call from rpg iv?

1167


How can we know running job is batch or interactive?

1122


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1193


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

3162


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.

2632


what is the necessary keyword needed to scroll subfile records?

1161