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
How Chain operation copies the record's data to the input buffer for the program?
can I touch the array during treatments?
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 diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
how do you use commitment control in rpg?
What are the types of identifiers?
what is kids-rpg?
what is *place and *auto keyword in prtf ?plz explain
how can you display specific subfile page on the screen in unequal subfile?
what is the use of sflnxtchg?
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
what is the difference between do while and do until?
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
how do I declare a minor?