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 / manan

actually the first answer will only work in sequential
execution in CL or SQLRPG. But if we wanna to use
simultaneously in the RPG then the CL will be OVRDBF FILE 1
to LIB1 and for the file 2 Use some other file FILEXXX and
OVRDBF it to LIB2/FILE1 and in RPG use the FILEXXX so when
u refer to any operation in FILEXXX that will reflect to
FILE1 in LIB2.

Other options for RPG4 are also correct ie usinf the
EXTFILE.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of sflnxtchg?

806


how do I play {insert rpg system here}?

588


how do I declare a table or array in rpg iv?

739


what was the robotech rpg?

689


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3290






explain sflclr, sflend, sfldlt, and sflcsrrrn?

891


What is a record lock error?

1270


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

1317


what are the key words you must use when using a subfile?

694


How to select highest score of each subject or how to select highest income of every month?

1299


How can we know running job is batch or interactive?

660


what is the rpg system?

670


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

677


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

2730


What are the types of identifiers?

574