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
Interviewer asked me write down DDS for load all subfile .can anybody write dds
how can you display specific subfile page on the screen in unequal subfile?
What is ment by record level identifier?
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...
can you debug ile rpg program using isdb?
what is file information data structure?
what is a rpg?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
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
are there any useful c runtime apis that I can call from rpg iv?
How can we know running job is batch or interactive?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what is *place and *auto keyword in prtf ?plz explain
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.
what is the necessary keyword needed to scroll subfile records?